public final class AbstractPollingIoConnector.ConnectionRequest extends DefaultConnectFuture
Constructor and Description |
---|
ConnectionRequest(H handle,
IoSessionInitializer<? extends ConnectFuture> callback)
Creates a new ConnectionRequest instance
|
Modifier and Type | Method and Description |
---|---|
boolean |
cancel()
Cancels the connection attempt and notifies all threads waiting for
this future.
|
long |
getDeadline() |
H |
getHandle() |
IoSessionInitializer<? extends ConnectFuture> |
getSessionInitializer() |
addListener, await, awaitUninterruptibly, getException, getSession, isCanceled, isConnected, newFailedFuture, removeListener, setException, setSession
await, await, awaitUninterruptibly, awaitUninterruptibly, getValue, isDone, join, join, setValue
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
await, await, awaitUninterruptibly, awaitUninterruptibly, isDone, join, join
public ConnectionRequest(H handle, IoSessionInitializer<? extends ConnectFuture> callback)
handle
- The IoHandercallback
- The IoFuture callbackpublic H getHandle()
public long getDeadline()
public IoSessionInitializer<? extends ConnectFuture> getSessionInitializer()
public boolean cancel()
cancel
in interface ConnectFuture
cancel
in class DefaultConnectFuture
true
if the future has been cancelled by this call, false
if the future was already cancelled.Copyright © 2004–2018 Apache MINA Project. All rights reserved.