Version: 5.7.1
clc atomiclong
atomiclong commands are a group of AtomicLong operations.
Usage:
bash
clc atomiclong [command] [flags]
Commands
- clc atomiclong get
- clc atomiclong set
- clc atomiclong increment-get
- clc atomiclong decrement-get
- clc atomiclong destroy
clc atomiclong get
Get the value of the AtomicLong.
Usage:
bash
clc atomiclong get [flags]
Parameters:
| Parameter | Required | Description | Default |
|---|---|---|---|
--name, -n | Optional | Name 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:
| Parameter | Required | Description | Default |
|---|---|---|---|
--name, -n | Optional | Name of the AtomicLong. | default |
value, | Required | Value 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:
| Parameter | Required | Description | Default |
|---|---|---|---|
--name, -n | Optional | Name of the AtomicLong. | default |
--by | Optional | Value to increment by | 1 |
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:
| Parameter | Required | Description | Default |
|---|---|---|---|
--name, -n | Optional | Name of the AtomicLong. | default |
--by | Optional | Value to decrement by | 1 |
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:
| Parameter | Required | Description | Default |
|---|---|---|---|
--name, -n | Optional | Name of the atomic long. | default |
--yes | Optional | Skip confirming the destroy operation. | false |