Class Counter
java.lang.Object
io.vertx.rxjava3.core.shareddata.Counter
- All Implemented Interfaces:
io.vertx.lang.rx.RxDelegate
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAndGet(long value) Add the value to the counter atomically and return the new countcompareAndSet(long expected, long value) Set the counter to the specified value only if the current value is the expectec value.Decrement the counter atomically and return the new countbooleanget()Get the current value of the countergetAndAdd(long value) Add the value to the counter atomically and return the value before the addIncrement the counter atomically and return the value before the increment.inthashCode()Increment the counter atomically and return the new countstatic CounternewInstance(Counter arg) rxAddAndGet(long value) Add the value to the counter atomically and return the new countrxCompareAndSet(long expected, long value) Set the counter to the specified value only if the current value is the expectec value.Decrement the counter atomically and return the new countrxGet()Get the current value of the counterrxGetAndAdd(long value) Add the value to the counter atomically and return the value before the addIncrement the counter atomically and return the value before the increment.Increment the counter atomically and return the new counttoString()
-
Field Details
-
__TYPE_ARG
-
-
Constructor Details
-
Counter
-
Method Details
-
toString
-
equals
-
hashCode
-
getDelegate
- Specified by:
getDelegatein interfaceio.vertx.lang.rx.RxDelegate
-
get
-
rxGet
-
incrementAndGet
-
rxIncrementAndGet
-
getAndIncrement
-
rxGetAndIncrement
-
decrementAndGet
-
rxDecrementAndGet
-
addAndGet
-
rxAddAndGet
-
getAndAdd
-
rxGetAndAdd
-
compareAndSet
-
rxCompareAndSet
-