Package org.redisson.misc
Class CountableListener<T>
- java.lang.Object
-
- org.redisson.misc.CountableListener<T>
-
- All Implemented Interfaces:
io.netty.util.concurrent.FutureListener<Object>
,io.netty.util.concurrent.GenericFutureListener<io.netty.util.concurrent.Future<Object>>
,EventListener
public class CountableListener<T> extends Object implements io.netty.util.concurrent.FutureListener<Object>
- 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 void
decCounter()
protected void
onSuccess(T value)
void
operationComplete(io.netty.util.concurrent.Future<Object> future)
void
setCounter(int newValue)
-
-
-
Field Detail
-
counter
protected final AtomicInteger counter
-
value
protected final T value
-
-