Package org.glassfish.grizzly.streams
Class AbstractStreamWriter.DisposeBufferCompletionHandler
- java.lang.Object
-
- org.glassfish.grizzly.streams.AbstractStreamWriter.DisposeBufferCompletionHandler
-
- All Implemented Interfaces:
CompletionHandler
- Enclosing class:
- AbstractStreamWriter
public static class AbstractStreamWriter.DisposeBufferCompletionHandler extends Object implements CompletionHandler
-
-
Constructor Summary
Constructors Constructor Description DisposeBufferCompletionHandler(Buffer buffer)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidcancelled()The operation was cancelled.voidcompleted(Object result)The operation was completed.protected voiddisposeBuffer()voidfailed(Throwable throwable)The operation was failed.voidupdated(Object result)The callback method may be called, when there is some progress in operation execution, but it is still not completed
-
-
-
Constructor Detail
-
DisposeBufferCompletionHandler
public DisposeBufferCompletionHandler(Buffer buffer)
-
-
Method Detail
-
cancelled
public void cancelled()
Description copied from interface:CompletionHandlerThe operation was cancelled.- Specified by:
cancelledin interfaceCompletionHandler
-
failed
public void failed(Throwable throwable)
Description copied from interface:CompletionHandlerThe operation was failed.- Specified by:
failedin interfaceCompletionHandler- Parameters:
throwable- error, which occurred during operation execution
-
completed
public void completed(Object result)
Description copied from interface:CompletionHandlerThe operation was completed.- Specified by:
completedin interfaceCompletionHandler- 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
public void updated(Object result)
Description copied from interface:CompletionHandlerThe callback method may be called, when there is some progress in operation execution, but it is still not completed- Specified by:
updatedin interfaceCompletionHandler- 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.
-
disposeBuffer
protected void disposeBuffer()
-
-