Package org.redisson.command
Class BatchPromise<T>
-
- <T>
-
- org.redisson.misc.RedissonPromise<T>
-
- org.redisson.command.BatchPromise<T>
-
public class BatchPromise<T> extends RedissonPromise<T>
- Author:
- Nikita Koksharov
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
cancel(boolean mayInterruptIfRunning)
>
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
await, await, await, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, cause, getNow, hasListeners, isCancelled, isDone, isSuccess, newFailedFuture, newSucceededFuture, onComplete, setUncancellable, toString, tryFailure, trySuccess
-
Methods inherited from class java.util.concurrent.
, , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
-
-
-
-
Method Detail
-
getSentPromise
public > getSentPromise()
-
cancel
public boolean cancel(boolean mayInterruptIfRunning)
- Specified by:
in interface
<T>
- Overrides:
cancel
in classRedissonPromise<T>
-
sync
public RPromise<T> sync() throws
Description copied from interface:RFuture
Waits for this future until it is done, and rethrows the cause of the failure if this future failed.
-
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
-
-