public class Counter extends Object
NOTE: This class has been automatically generated from the
original non RX-ified interface using Vert.x codegen.| Modifier and Type | Field and Description |
|---|---|
static TypeArg<Counter> |
__TYPE_ARG |
| Constructor and Description |
|---|
Counter(io.vertx.core.shareddata.Counter delegate) |
| Modifier and Type | Method and Description |
|---|---|
CompletionStage<Long> |
addAndGet(long value)
Add the value to the counter atomically and return the new count
|
CompletionStage<Boolean> |
compareAndSet(long expected,
long value)
Set the counter to the specified value only if the current value is the expectec value.
|
CompletionStage<Long> |
decrementAndGet()
Decrement the counter atomically and return the new count
|
boolean |
equals(Object o) |
CompletionStage<Long> |
get()
Get the current value of the counter
|
CompletionStage<Long> |
getAndAdd(long value)
Add the value to the counter atomically and return the value before the add
|
CompletionStage<Long> |
getAndIncrement()
Increment the counter atomically and return the value before the increment.
|
io.vertx.core.shareddata.Counter |
getDelegate() |
int |
hashCode() |
CompletionStage<Long> |
incrementAndGet()
Increment the counter atomically and return the new count
|
static Counter |
newInstance(io.vertx.core.shareddata.Counter arg) |
String |
toString() |
public io.vertx.core.shareddata.Counter getDelegate()
public CompletionStage<Long> get()
public CompletionStage<Long> incrementAndGet()
public CompletionStage<Long> getAndIncrement()
public CompletionStage<Long> decrementAndGet()
public CompletionStage<Long> addAndGet(long value)
value - the value to addpublic CompletionStage<Long> getAndAdd(long value)
value - the value to addpublic CompletionStage<Boolean> compareAndSet(long expected, long value)
expected - the expected valuevalue - the new valuepublic static Counter newInstance(io.vertx.core.shareddata.Counter arg)
Copyright © 2019 SmallRye. All rights reserved.