public class DefaultWriteFuture extends AbstractIoFuture<Void>
IoFuture
returned by IoSession.writeWithFuture(Object)
Constructor and Description |
---|
DefaultWriteFuture() |
Modifier and Type | Method and Description |
---|---|
protected boolean |
cancelOwner(boolean mayInterruptIfRunning)
Notify the owner of this future that a client is attempting to cancel.
|
void |
complete()
complete this future
|
cancel, get, get, isCancelled, isDone, register, scheduleException, scheduleResult, setException, setResult
protected boolean cancelOwner(boolean mayInterruptIfRunning)
AbstractIoFuture
After this method returns, subsequent calls to AbstractIoFuture.isDone()
will always return true. Subsequent calls
to AbstractIoFuture.isCancelled()
will always return true if this method returned true.
cancelOwner
in class AbstractIoFuture<Void>
mayInterruptIfRunning
- true if the owner executing this task should be interrupted; otherwise,
in-progress tasks are allowed to completepublic void complete()
Copyright © 2009–2013 Apache MINA Project. All rights reserved.