public class CountableListener<T> extends Object implements BiConsumer<Object,Throwable>
| Modifier and Type | Field and Description |
|---|---|
protected AtomicInteger |
counter |
protected RPromise<T> |
result |
protected T |
value |
| Constructor and Description |
|---|
CountableListener() |
CountableListener(RPromise<T> result,
T value) |
CountableListener(RPromise<T> result,
T value,
int count) |
| Modifier and Type | Method and Description |
|---|---|
void |
accept(Object t,
Throwable u) |
void |
decCounter() |
protected void |
onSuccess(T value) |
void |
setCounter(int newValue) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitandThenprotected final AtomicInteger counter
protected final T value
Copyright © 2014–2021 Redisson. All rights reserved.