public class ConnectFuture extends AbstractIoFuture<IoSession>
Future for waiting session connection.| Constructor and Description |
|---|
ConnectFuture() |
| 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 |
cannotConnect(Exception e)
Can't connect
|
void |
complete(IoSession session)
session connected
|
void |
error(Exception e)
connection error
|
cancel, get, get, isCancelled, isDone, register, scheduleException, scheduleResult, setException, setResultprotected 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<IoSession>mayInterruptIfRunning - true if the owner executing this task should be interrupted; otherwise,
in-progress tasks are allowed to completepublic void cannotConnect(Exception e)
public void complete(IoSession session)
public void error(Exception e)
Copyright © 2009–2013 Apache MINA Project. All rights reserved.