Package org.redisson.misc
Class CountableListener<T>
- java.lang.Object
-
- org.redisson.misc.CountableListener<T>
-
- All Implemented Interfaces:
BiConsumer<Object,Throwable>
public class CountableListener<T> extends Object implements BiConsumer<Object,Throwable>
- Author:
- Nikita Koksharov
-
-
Constructor Summary
Constructors Constructor Description CountableListener()CountableListener(RPromise<T> result, T value)CountableListener(RPromise<T> result, T value, int count)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaccept(Object t, Throwable u)voiddecCounter()protected voidonSuccess(T value)voidsetCounter(int newValue)-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface java.util.function.BiConsumer
andThen
-
-
-
-
Field Detail
-
counter
protected final AtomicInteger counter
-
value
protected final T value
-
-