Package org.redisson.command
Class BatchPromise<T>
- java.lang.Object
-
- org.redisson.misc.RedissonPromise<T>
-
- org.redisson.command.BatchPromise<T>
-
public class BatchPromise<T> extends RedissonPromise<T>
- Author:
- Nikita Koksharov
-
-
Constructor Summary
Constructors Constructor Description BatchPromise(AtomicBoolean executed)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description RFuture<Void>
getSentPromise()
RPromise<T>
sync()
Waits for this future until it is done, and rethrows the cause of the failure if this future failed.RPromise<T>
syncUninterruptibly()
Waits for this future until it is done, and rethrows the cause of the failure if this future failed.-
Methods inherited from class org.redisson.misc.RedissonPromise
addListener, addListeners, await, await, await, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, cancel, cause, get, get, getNow, hasListeners, isCancelled, isDone, isSuccess, newFailedFuture, newSucceededFuture, removeListener, removeListeners, setUncancellable, toString, tryFailure, trySuccess
-
-
-
-
Constructor Detail
-
BatchPromise
public BatchPromise(AtomicBoolean executed)
-
-
Method Detail
-
sync
public RPromise<T> sync() throws InterruptedException
Description copied from interface:RFuture
Waits for this future until it is done, and rethrows the cause of the failure if this future failed.- Specified by:
sync
in interfaceRFuture<T>
- Specified by:
sync
in interfaceRPromise<T>
- Overrides:
sync
in classRedissonPromise<T>
- Returns:
- Future object
- Throws:
InterruptedException
- if the current thread was interrupted
-
syncUninterruptibly
public RPromise<T> syncUninterruptibly()
Description copied from interface:RFuture
Waits for this future until it is done, and rethrows the cause of the failure if this future failed.- Specified by:
syncUninterruptibly
in interfaceRFuture<T>
- Specified by:
syncUninterruptibly
in interfaceRPromise<T>
- Overrides:
syncUninterruptibly
in classRedissonPromise<T>
- Returns:
- Future object
-
-