public abstract class WaarpCompletedFuture extends Object implements WaarpFutureInterface
Modifier | Constructor and Description |
---|---|
protected |
WaarpCompletedFuture() |
Modifier and Type | Method and Description |
---|---|
boolean |
awaitOrInterruptible() |
boolean |
awaitOrInterruptible(long timeoutMilliseconds) |
boolean |
awaitOrInterruptible(long timeout,
TimeUnit unit) |
boolean |
cancel() |
boolean |
isCancelled() |
boolean |
isDone() |
void |
reset() |
boolean |
setFailure(Throwable cause) |
boolean |
setSuccess() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getCause, isFailed, isSuccess, rethrowIfFailed
public final boolean awaitOrInterruptible()
awaitOrInterruptible
in interface WaarpFutureInterface
public final boolean awaitOrInterruptible(long timeoutMilliseconds)
awaitOrInterruptible
in interface WaarpFutureInterface
public final boolean awaitOrInterruptible(long timeout, TimeUnit unit)
awaitOrInterruptible
in interface WaarpFutureInterface
public final void reset()
reset
in interface WaarpFutureInterface
public final boolean isDone()
isDone
in interface WaarpFutureInterface
public final boolean setFailure(Throwable cause)
setFailure
in interface WaarpFutureInterface
public final boolean setSuccess()
setSuccess
in interface WaarpFutureInterface
public final boolean cancel()
cancel
in interface WaarpFutureInterface
public final boolean isCancelled()
isCancelled
in interface WaarpFutureInterface
Copyright © 2009–2022 Waarp. All rights reserved.