| Constructor and Description |
|---|
AsynchronousCounter(VertxInternal vertx) |
AsynchronousCounter(VertxInternal vertx,
AtomicLong counter) |
| Modifier and Type | Method and Description |
|---|---|
Future<Long> |
addAndGet(long value)
Same as
Counter.addAndGet(long, Handler) but returns a Future of the asynchronous result |
Future<Boolean> |
compareAndSet(long expected,
long value)
Same as
Counter.compareAndSet(long, long, Handler) but returns a Future of the asynchronous result |
Future<Long> |
decrementAndGet()
Same as
Counter.decrementAndGet(Handler) but returns a Future of the asynchronous result |
Future<Long> |
get()
Same as
Counter.get(Handler) but returns a Future of the asynchronous result |
Future<Long> |
getAndAdd(long value)
Same as
Counter.getAndAdd(long, Handler) but returns a Future of the asynchronous result |
Future<Long> |
getAndIncrement()
Same as
Counter.getAndIncrement(Handler) but returns a Future of the asynchronous result |
Future<Long> |
incrementAndGet()
Same as
Counter.incrementAndGet(Handler) but returns a Future of the asynchronous result |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitaddAndGet, compareAndSet, decrementAndGet, get, getAndAdd, getAndIncrement, incrementAndGetpublic AsynchronousCounter(VertxInternal vertx)
public AsynchronousCounter(VertxInternal vertx, AtomicLong counter)
public Future<Long> get()
CounterCounter.get(Handler) but returns a Future of the asynchronous resultpublic Future<Long> incrementAndGet()
CounterCounter.incrementAndGet(Handler) but returns a Future of the asynchronous resultincrementAndGet in interface Counterpublic Future<Long> getAndIncrement()
CounterCounter.getAndIncrement(Handler) but returns a Future of the asynchronous resultgetAndIncrement in interface Counterpublic Future<Long> decrementAndGet()
CounterCounter.decrementAndGet(Handler) but returns a Future of the asynchronous resultdecrementAndGet in interface Counterpublic Future<Long> addAndGet(long value)
CounterCounter.addAndGet(long, Handler) but returns a Future of the asynchronous resultpublic Future<Long> getAndAdd(long value)
CounterCounter.getAndAdd(long, Handler) but returns a Future of the asynchronous resultpublic Future<Boolean> compareAndSet(long expected, long value)
CounterCounter.compareAndSet(long, long, Handler) but returns a Future of the asynchronous resultcompareAndSet in interface CounterCopyright © 2021. All rights reserved.