java.lang.Object
org.glassfish.grizzly.EmptyCompletionHandler<E>
- All Implemented Interfaces:
CompletionHandler<E>
- Direct Known Subclasses:
TCPNIOServerConnection.RegisterAcceptedChannelCompletionHandler
,TransformerInput.TransformerCompletionHandler
,UDPNIOTransport.RegisterChannelCompletionHandler
Empty implementation for
CompletionHandler
interface.- Author:
- Alexey Stashok
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
The operation was cancelled.void
The operation was completed.void
The operation was failed.void
The callback method may be called, when there is some progress in operation execution, but it is still not completed
-
Constructor Details
-
EmptyCompletionHandler
public EmptyCompletionHandler()
-
-
Method Details
-
cancelled
public void cancelled()The operation was cancelled.- Specified by:
cancelled
in interfaceCompletionHandler<E>
-
failed
The operation was failed.- Specified by:
failed
in interfaceCompletionHandler<E>
- Parameters:
throwable
- error, which occurred during operation execution
-
completed
The operation was completed.- Specified by:
completed
in interfaceCompletionHandler<E>
- Parameters:
result
- the operation result Please note, for performance reasons the result object might be recycled after returning from the completed method. So it's not guaranteed that using of the result object is safe outside this method's scope.
-
updated
The callback method may be called, when there is some progress in operation execution, but it is still not completed- Specified by:
updated
in interfaceCompletionHandler<E>
- Parameters:
result
- the current result Please note, for performance reasons the result object might be recycled after returning from the updated method. So it's not guaranteed that using of the result object is safe outside this method's scope.
-