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 |
---|---|---|---|
|
Optional |
Name of the atomic-long. |
|
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 |
---|---|---|---|
|
Optional |
Name of the atomic-long. |
|
|
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 |
---|---|---|---|
|
Optional |
Name of the AtomicLong. |
|
|
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 |
---|---|---|---|
|
Optional |
Name of the AtomicLong. |
|
|
Optional |
Value to decrement by |
1 |
Example:
clc atomic-long decrement-get --name atomicSum --by 10