/**@class java.nio.channels.CompletionHandler
 A handler for consuming the result of an asynchronous I/O operation.

 <p> The asynchronous channels defined in this package allow a completion
 handler to be specified to consume the result of an asynchronous operation.
 The {@link #completed completed} method is invoked when the I/O operation
 completes successfully. The {@link #failed failed} method is invoked if the
 I/O operations fails. The implementations of these methods should complete
 in a timely manner so as to avoid keeping the invoking thread from dispatching
 to other completion handlers.

 @param   <V>     The result type of the I/O operation
 @param   <A>     The type of the object attached to the I/O operation

 @since 1.7
*/
var CompletionHandler = {

/**Invoked when an operation has completed.
@param {Object {Object}} result
          The result of the I/O operation.
@param {Object {Object}} attachment
          The object attached to the I/O operation when it was initiated.
*/
completed : function(  ) {},

/**Invoked when an operation fails.
@param {Object {Throwable}} exc
          The exception to indicate why the I/O operation failed
@param {Object {Object}} attachment
          The object attached to the I/O operation when it was initiated.
*/
failed : function(  ) {},


};