| Modifier and Type | Field and Description |
|---|---|
| pack-priv final Object | |
| private final AtomicReference | |
| pack-priv final BasicFuture | |
| pack-priv final SocketAddress | |
| pack-priv final SocketAddress | |
| pack-priv final NamedEndpoint | |
| pack-priv final Timeout |
| Access | Constructor and Description |
|---|---|
| public | IOSessionRequest(final NamedEndpoint remoteEndpoint, final SocketAddress remoteAddress, final SocketAddress localAddress, final Timeout timeout, final Object attachment, final FutureCallback<IOSession> callback)
|
| Modifier and Type | Method and Description |
|---|---|
| public void | |
| public boolean | |
| public boolean | cancel(final boolean
true if the thread
executing this task should be interrupted (if the thread is
known to the implementation); otherwise, in-progress tasks are
allowed to completeImplements java. |
| public void | |
| public void | |
| public IOSession | get()
Implements java. |
| public IOSession | get(final long
the maximum time to wait timeout, final TimeUnit the time unit of the timeout argument unit)Implements java. |
| public boolean | isCancelled()
Implements java. true if this task was cancelled before it completed
normally.
|
| public boolean | |
| public String |
| attachment | back to summary |
|---|---|
| pack-priv final Object attachment | |
| closeableRef | back to summary |
|---|---|
| private final AtomicReference<ModalCloseable> closeableRef | |
| future | back to summary |
|---|---|
| pack-priv final BasicFuture<IOSession> future | |
| localAddress | back to summary |
|---|---|
| pack-priv final SocketAddress localAddress | |
| remoteAddress | back to summary |
|---|---|
| pack-priv final SocketAddress remoteAddress | |
| remoteEndpoint | back to summary |
|---|---|
| pack-priv final NamedEndpoint remoteEndpoint | |
| timeout | back to summary |
|---|---|
| pack-priv final Timeout timeout | |
| IOSessionRequest | back to summary |
|---|---|
| public IOSessionRequest(final NamedEndpoint remoteEndpoint, final SocketAddress remoteAddress, final SocketAddress localAddress, final Timeout timeout, final Object attachment, final FutureCallback<IOSession> callback) | |
| assign | back to summary |
|---|---|
| public void assign(final ModalCloseable closeable) | |
| cancel | back to summary |
|---|---|
| public boolean cancel() | |
| cancel | back to summary |
|---|---|
| public boolean cancel(final boolean mayInterruptIfRunning) Implements java. Doc from java. Attempts to cancel execution of this task. This method has no
effect if the task is already completed or cancelled, or could
not be cancelled for some other reason. Otherwise, if this
task has not started when The return value from this method does not necessarily
indicate whether the task is now cancelled; use
| |
| completed | back to summary |
|---|---|
| public void completed(final ProtocolIOSession ioSession) | |
| failed | back to summary |
|---|---|
| public void failed(final Exception cause) | |
| get | back to summary |
|---|---|
| public IOSession get() throws InterruptedException, ExecutionException Implements java. Doc from java. Waits if necessary for the computation to complete, and then retrieves its result.
| |
| get | back to summary |
|---|---|
| public IOSession get(final long timeout, final TimeUnit unit) throws InterruptedException, ExecutionException, TimeoutException Implements java. Doc from java. Waits if necessary for at most the given time for the computation to complete, and then retrieves its result, if available.
| |
| isCancelled | back to summary |
|---|---|
| public boolean isCancelled() Implements java. Doc from java. Returns
| |
| isDone | back to summary |
|---|---|
| public boolean isDone() Implements java. Doc from java. Returns
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object. | |