Top Constructors Methods
org.apache.sshd.common.io.nio2

public abstract Class Nio2CompletionHandler<V, A>

extends Object
implements CompletionHandler<V, A>
Class Inheritance
All Implemented Interfaces
java.nio.channels.CompletionHandler
Known Direct Subclasses
org.apache.sshd.common.io.nio2.Nio2Connector.ConnectionCompletionHandler, org.apache.sshd.common.io.nio2.Nio2Acceptor.AcceptCompletionHandler
Type Parameters
<V>
Result type
<A>
Attachment type
Imports
java.nio.channels.CompletionHandler, java.security.AccessController, .PrivilegedAction

Author
Apache MINA SSHD Project

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public void
completed(V
The result of the I/O operation.
result
,
A
The object attached to the I/O operation when it was initiated.
attachment
)

Implements java.nio.channels.CompletionHandler.completed.

Invoked when an operation has completed.

public void
failed(Throwable
The exception to indicate why the I/O operation failed
exc
,
A
The object attached to the I/O operation when it was initiated.
attachment
)

Implements java.nio.channels.CompletionHandler.failed.

Invoked when an operation fails.

protected abstract void
onCompleted(V result, A attachment)

protected abstract void
onFailed(Throwable exc, A attachment)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Nio2CompletionHandlerback to summary
protected Nio2CompletionHandler()

Method Detail

completedback to summary
public void completed(V result, A attachment)

Implements java.nio.channels.CompletionHandler.completed.

Doc from java.nio.channels.CompletionHandler.completed.

Invoked when an operation has completed.

Parameters
result:V

The result of the I/O operation.

attachment:A

The object attached to the I/O operation when it was initiated.

Annotations
@Override
failedback to summary
public void failed(Throwable exc, A attachment)

Implements java.nio.channels.CompletionHandler.failed.

Doc from java.nio.channels.CompletionHandler.failed.

Invoked when an operation fails.

Parameters
exc:Throwable

The exception to indicate why the I/O operation failed

attachment:A

The object attached to the I/O operation when it was initiated.

Annotations
@Override
onCompletedback to summary
protected abstract void onCompleted(V result, A attachment)
onFailedback to summary
protected abstract void onFailed(Throwable exc, A attachment)