public abstract class AbstractIoWriteFuture extends DefaultVerifiableSshFuture<IoWriteFuture> implements IoWriteFuture
CANCELED
log
Modifier | Constructor and Description |
---|---|
protected |
AbstractIoWriteFuture(Object id,
Object lock) |
Modifier and Type | Method and Description |
---|---|
static IoWriteFuture |
fulfilled(Object id,
Object value) |
Throwable |
getException() |
boolean |
isWritten() |
IoWriteFuture |
verify(long timeout)
Wait and verify that the operation was successful
|
addListener, await0, cancel, getNumRegisteredListeners, getValue, isCanceled, isDone, notifyListeners, removeListener, setValue, toString
asListener, asT, await, awaitUninterruptibly, formatExceptionMessage, getId, notifyListener, verifyResult
debug, debug, debug, debug, debug, error, error, error, error, error, getSimplifiedLogger, info, info, warn, warn, warn, warn, warn, warn, warn, warn
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
addListener, removeListener
await, await, await, await, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, awaitUninterruptibly, getId, isDone
verify, verify, verify
public IoWriteFuture verify(long timeout) throws IOException
VerifiableFuture
verify
in interface VerifiableFuture<IoWriteFuture>
timeout
- Wait timeout in millisecondsIOException
- If failed to verify successfully on timepublic boolean isWritten()
isWritten
in interface IoWriteFuture
public Throwable getException()
getException
in interface IoWriteFuture
Exception
.
Otherwise, null
is returned (use WaitableFuture.isDone()
to distinguish between the two.public static IoWriteFuture fulfilled(Object id, Object value)
Copyright © 2008–2024 The Apache Software Foundation. All rights reserved.