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, wait
andThen
protected final AtomicInteger counter
protected final T value
Copyright © 2014–2019 The Redisson Project. All rights reserved.