clc atomic-long

atomic-long commands are a group of AtomicLong operations.

Usage:

clc atomic-long [command] [flags]

clc atomic-long get

Get the value of the AtomicLong.

Usage:

clc atomic-long get [flags]

Parameters:

Parameter Required Description Default

--name, -n

Optional

Name of the atomic-long.

default

Example:

clc atomic-long get --name transactionCount

clc atomic-long set

Sets the value of the AtomicLong.

Usage:

clc atomic-long set [value] [flags]

Parameters:

Parameter Required Description Default

--name, -n

Optional

Name of the atomic-long.

default

value,

Required

Value to set for the atomic long.

N/A

Example:

clc atomic-long set --name atomicSum  123

clc atomic-long increment-get

Increment the AtomicLong by the given value.

Usage:

clc atomic-long increment-get [flags]

Parameters:

Parameter Required Description Default

--name, -n

Optional

Name of the AtomicLong.

default

--by

Optional

Value to increment by

1

Example:

clc atomic-long increment-get --name atomicSum --by 10

clc atomic-long decrement-get

Decrement the AtomicLong by the given value.

Usage:

clc atomic-long decrement-get [flags]

Parameters:

Parameter Required Description Default

--name, -n

Optional

Name of the AtomicLong.

default

--by

Optional

Value to decrement by

1

Example:

clc atomic-long decrement-get --name atomicSum --by 10