Modifier and Type | Field and Description |
---|---|
static TypeArg<Counter> |
__TYPE_ARG |
Modifier and Type | Method and Description |
---|---|
void |
addAndGet(long value,
Handler<AsyncResult<Long>> resultHandler)
Add the value to the counter atomically and return the new count
|
rx.Observable<Long> |
addAndGetObservable(long value)
Deprecated.
use
rxAddAndGet(long) instead |
void |
compareAndSet(long expected,
long value,
Handler<AsyncResult<Boolean>> resultHandler)
Set the counter to the specified value only if the current value is the expectec value.
|
rx.Observable<Boolean> |
compareAndSetObservable(long expected,
long value)
Deprecated.
use
rxCompareAndSet(long, long) instead |
void |
decrementAndGet(Handler<AsyncResult<Long>> resultHandler)
Decrement the counter atomically and return the new count
|
rx.Observable<Long> |
decrementAndGetObservable()
Deprecated.
use
rxDecrementAndGet() instead |
boolean |
equals(Object o) |
void |
get(Handler<AsyncResult<Long>> resultHandler)
Get the current value of the counter
|
void |
getAndAdd(long value,
Handler<AsyncResult<Long>> resultHandler)
Add the value to the counter atomically and return the value before the add
|
rx.Observable<Long> |
getAndAddObservable(long value)
Deprecated.
use
rxGetAndAdd(long) instead |
void |
getAndIncrement(Handler<AsyncResult<Long>> resultHandler)
Increment the counter atomically and return the value before the increment.
|
rx.Observable<Long> |
getAndIncrementObservable()
Deprecated.
use
rxGetAndIncrement() instead |
Counter |
getDelegate() |
rx.Observable<Long> |
getObservable()
Deprecated.
use
rxGet() instead |
int |
hashCode() |
void |
incrementAndGet(Handler<AsyncResult<Long>> resultHandler)
Increment the counter atomically and return the new count
|
rx.Observable<Long> |
incrementAndGetObservable()
Deprecated.
use
rxIncrementAndGet() instead |
static Counter |
newInstance(Counter arg) |
rx.Single<Long> |
rxAddAndGet(long value)
Add the value to the counter atomically and return the new count
|
rx.Single<Boolean> |
rxCompareAndSet(long expected,
long value)
Set the counter to the specified value only if the current value is the expectec value.
|
rx.Single<Long> |
rxDecrementAndGet()
Decrement the counter atomically and return the new count
|
rx.Single<Long> |
rxGet()
Get the current value of the counter
|
rx.Single<Long> |
rxGetAndAdd(long value)
Add the value to the counter atomically and return the value before the add
|
rx.Single<Long> |
rxGetAndIncrement()
Increment the counter atomically and return the value before the increment.
|
rx.Single<Long> |
rxIncrementAndGet()
Increment the counter atomically and return the new count
|
String |
toString() |
public Counter(Counter delegate)
public Counter getDelegate()
public void get(Handler<AsyncResult<Long>> resultHandler)
resultHandler
- handler which will be passed the value@Deprecated public rx.Observable<Long> getObservable()
rxGet()
insteadpublic rx.Single<Long> rxGet()
public void incrementAndGet(Handler<AsyncResult<Long>> resultHandler)
resultHandler
- handler which will be passed the value@Deprecated public rx.Observable<Long> incrementAndGetObservable()
rxIncrementAndGet()
insteadpublic rx.Single<Long> rxIncrementAndGet()
public void getAndIncrement(Handler<AsyncResult<Long>> resultHandler)
resultHandler
- handler which will be passed the value@Deprecated public rx.Observable<Long> getAndIncrementObservable()
rxGetAndIncrement()
insteadpublic rx.Single<Long> rxGetAndIncrement()
public void decrementAndGet(Handler<AsyncResult<Long>> resultHandler)
resultHandler
- handler which will be passed the value@Deprecated public rx.Observable<Long> decrementAndGetObservable()
rxDecrementAndGet()
insteadpublic rx.Single<Long> rxDecrementAndGet()
public void addAndGet(long value, Handler<AsyncResult<Long>> resultHandler)
value
- the value to addresultHandler
- handler which will be passed the value@Deprecated public rx.Observable<Long> addAndGetObservable(long value)
rxAddAndGet(long)
insteadvalue
- the value to addpublic rx.Single<Long> rxAddAndGet(long value)
value
- the value to addpublic void getAndAdd(long value, Handler<AsyncResult<Long>> resultHandler)
value
- the value to addresultHandler
- handler which will be passed the value@Deprecated public rx.Observable<Long> getAndAddObservable(long value)
rxGetAndAdd(long)
insteadvalue
- the value to addpublic rx.Single<Long> rxGetAndAdd(long value)
value
- the value to addpublic void compareAndSet(long expected, long value, Handler<AsyncResult<Boolean>> resultHandler)
expected
- the expected valuevalue
- the new valueresultHandler
- the handler will be passed true on success@Deprecated public rx.Observable<Boolean> compareAndSetObservable(long expected, long value)
rxCompareAndSet(long, long)
insteadexpected
- the expected valuevalue
- the new valuepublic rx.Single<Boolean> rxCompareAndSet(long expected, long value)
expected
- the expected valuevalue
- the new valueCopyright © 2019 Eclipse. All rights reserved.