Skip to main content
Version: 5.7.1

clc atomiclong

atomiclong commands are a group of AtomicLong operations.

Usage:

bash
clc atomiclong [command] [flags]

Commands​

clc atomiclong get​

Get the value of the AtomicLong.

Usage:

bash
clc atomiclong get [flags]

Parameters:

ParameterRequiredDescriptionDefault
--name, -nOptionalName of the AtomicLong.default

Example:

bash
clc atomiclong get --name transactionCount

clc atomiclong set​

Sets the value of the AtomicLong.

Usage:

bash
clc atomiclong set [value] [flags]

Parameters:

ParameterRequiredDescriptionDefault
--name, -nOptionalName of the AtomicLong.default
value,RequiredValue to set for the atomic long.N/A

Example:

bash
clc atomiclong set --name atomicSum 123

clc atomiclong increment-get​

Increment the AtomicLong by the given value.

Usage:

bash
clc atomiclong increment-get [flags]

Parameters:

ParameterRequiredDescriptionDefault
--name, -nOptionalName of the AtomicLong.default
--byOptionalValue to increment by1

Example:

bash
clc atomiclong increment-get --name atomicSum --by 10

clc atomiclong decrement-get​

Decrement the AtomicLong by the given value.

Usage:

bash
clc atomiclong decrement-get [flags]

Parameters:

ParameterRequiredDescriptionDefault
--name, -nOptionalName of the AtomicLong.default
--byOptionalValue to decrement by1

Example:

bash
clc atomiclong decrement-get --name atomicSum --by 10

clc atomiclong destroy​

Deletes the atomic long and related data. Once destroyed, an AtomicLong with the same name cannot be used.

Usage:

bash
clc atomiclong destroy [flags]

Parameters:

ParameterRequiredDescriptionDefault
--name, -nOptionalName of the atomic long.default
--yesOptionalSkip confirming the destroy operation.false