ConnectFuture
, IoFuture
public final class AbstractPollingIoConnector.ConnectionRequest extends DefaultConnectFuture
Constructor | Description |
---|---|
ConnectionRequest(H handle,
IoSessionInitializer<? extends ConnectFuture> callback) |
Modifier and Type | Method | 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
await, await, awaitUninterruptibly, awaitUninterruptibly, isDone, join, join
public ConnectionRequest(H handle, IoSessionInitializer<? extends ConnectFuture> callback)
public H getHandle()
public long getDeadline()
public IoSessionInitializer<? extends ConnectFuture> getSessionInitializer()
public boolean cancel()
DefaultConnectFuture
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.