Modifier and Type | Field and Description |
---|---|
static io.vertx.lang.rx.TypeArg<Counter> |
__TYPE_ARG |
Constructor and Description |
---|
Counter(Counter delegate) |
Counter(Object delegate) |
Modifier and Type | Method and Description |
---|---|
Single<Long> |
addAndGet(long value)
Add the value to the counter atomically and return the new count
|
Single<Boolean> |
compareAndSet(long expected,
long value)
Set the counter to the specified value only if the current value is the expectec value.
|
Single<Long> |
decrementAndGet()
Decrement the counter atomically and return the new count
|
boolean |
equals(Object o) |
Single<Long> |
get()
Get the current value of the counter
|
Single<Long> |
getAndAdd(long value)
Add the value to the counter atomically and return the value before the add
|
Single<Long> |
getAndIncrement()
Increment the counter atomically and return the value before the increment.
|
Counter |
getDelegate() |
int |
hashCode() |
Single<Long> |
incrementAndGet()
Increment the counter atomically and return the new count
|
static Counter |
newInstance(Counter arg) |
Single<Long> |
rxAddAndGet(long value)
Add the value to the counter atomically and return the new count
|
Single<Boolean> |
rxCompareAndSet(long expected,
long value)
Set the counter to the specified value only if the current value is the expectec value.
|
Single<Long> |
rxDecrementAndGet()
Decrement the counter atomically and return the new count
|
Single<Long> |
rxGet()
Get the current value of the counter
|
Single<Long> |
rxGetAndAdd(long value)
Add the value to the counter atomically and return the value before the add
|
Single<Long> |
rxGetAndIncrement()
Increment the counter atomically and return the value before the increment.
|
Single<Long> |
rxIncrementAndGet()
Increment the counter atomically and return the new count
|
String |
toString() |
public static final io.vertx.lang.rx.TypeArg<Counter> __TYPE_ARG
public Counter getDelegate()
public Single<Long> incrementAndGet()
public Single<Long> rxIncrementAndGet()
public Single<Long> getAndIncrement()
public Single<Long> rxGetAndIncrement()
public Single<Long> decrementAndGet()
public Single<Long> rxDecrementAndGet()
public Single<Long> addAndGet(long value)
value
- the value to addpublic Single<Long> rxAddAndGet(long value)
value
- the value to addpublic Single<Long> getAndAdd(long value)
value
- the value to addpublic Single<Long> rxGetAndAdd(long value)
value
- the value to addpublic Single<Boolean> compareAndSet(long expected, long value)
expected
- the expected valuevalue
- the new valuepublic Single<Boolean> rxCompareAndSet(long expected, long value)
expected
- the expected valuevalue
- the new valueCopyright © 2021 Eclipse. All rights reserved.