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, setSessionawait, await, awaitUninterruptibly, awaitUninterruptibly, getValue, isDone, join, join, setValueclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitawait, await, awaitUninterruptibly, awaitUninterruptibly, isDone, join, joinpublic 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 ConnectFuturecancel in class DefaultConnectFuturetrue if the future has been cancelled by this call, false
if the future was already cancelled.Copyright © 2004–2024 Apache MINA Project. All rights reserved.