Class ChunkedCompletionHandler
java.lang.Object
org.glassfish.grizzly.http2.utils.ChunkedCompletionHandler
- All Implemented Interfaces:
CompletionHandler<WriteResult>
- Author:
- oleksiys
-
Constructor Summary
ConstructorsConstructorDescriptionChunkedCompletionHandler(CompletionHandler<WriteResult> parentCompletionHandler) -
Method Summary
Modifier and TypeMethodDescriptionvoidThe operation was cancelled.voidcompleted(WriteResult result) The operation was completed.protected voiddone0()This method does nothing but can be overriden to implement some action executed before the parent completition handler is executed.voidThe operation was failed.voidvoidupdated(WriteResult result) The callback method may be called, when there is some progress in operation execution, but it is still not completed
-
Constructor Details
-
ChunkedCompletionHandler
- Parameters:
parentCompletionHandler- - can be null
-
-
Method Details
-
incChunks
public void incChunks() -
cancelled
public void cancelled()Description copied from interface:CompletionHandlerThe operation was cancelled.- Specified by:
cancelledin interfaceCompletionHandler<WriteResult>
-
failed
Description copied from interface:CompletionHandlerThe operation was failed.- Specified by:
failedin interfaceCompletionHandler<WriteResult>- Parameters:
throwable- error, which occurred during operation execution
-
completed
Description copied from interface:CompletionHandlerThe operation was completed.- Specified by:
completedin interfaceCompletionHandler<WriteResult>- 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
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<WriteResult>- 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.
-
done0
protected void done0()This method does nothing but can be overriden to implement some action executed before the parent completition handler is executed.
-