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>
Modifier and Type | Field | Description |
---|---|---|
protected AtomicInteger |
counter |
|
protected RPromise<T> |
result |
|
protected T |
value |
Constructor | Description |
---|---|
CountableListener() |
|
CountableListener(RPromise<T> result,
T value) |
|
CountableListener(RPromise<T> result,
T value,
int count) |
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) |
protected final AtomicInteger counter
protected final T value
Copyright © 2014–2018 The Redisson Project. All rights reserved.