public static class AbstractStreamWriter.DisposeBufferCompletionHandler extends Object implements CompletionHandler
| Constructor and Description |
|---|
AbstractStreamWriter.DisposeBufferCompletionHandler(Buffer buffer) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancelled()
The operation was cancelled.
|
void |
completed(Object result)
The operation was completed.
|
protected void |
disposeBuffer() |
void |
failed(Throwable throwable)
The operation was failed.
|
void |
updated(Object result)
The callback method may be called, when there is some progress in
operation execution, but it is still not completed
|
public AbstractStreamWriter.DisposeBufferCompletionHandler(Buffer buffer)
public void cancelled()
CompletionHandlercancelled in interface CompletionHandlerpublic void failed(Throwable throwable)
CompletionHandlerfailed in interface CompletionHandlerthrowable - error, which occurred during operation executionpublic void completed(Object result)
CompletionHandlercompleted in interface CompletionHandlerresult - 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.public void updated(Object result)
CompletionHandlerupdated in interface CompletionHandlerresult - 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.protected void disposeBuffer()
Copyright © 2012-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.