A newer version of Hazelcast CLC is available.

View latest

clc atomiclong

atomiclong commands are a group of AtomicLong operations.

Usage:

clc atomiclong [command] [flags]

clc atomiclong get

Get the value of the AtomicLong.

Usage:

clc atomiclong get [flags]

Parameters:

Parameter Required Description Default

--name, -n

Optional

Name of the AtomicLong.

default

Example:

clc atomiclong get --name transactionCount

clc atomiclong set

Sets the value of the AtomicLong.

Usage:

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:

clc atomiclong set --name atomicSum  123

clc atomiclong increment-get

Increment the AtomicLong by the given value.

Usage:

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:

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

clc atomiclong decrement-get

Decrement the AtomicLong by the given value.

Usage:

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:

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:

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