public static class AbstractStreamWriter.DisposeBufferCompletionHandler extends Object implements CompletionHandler
Constructor and Description |
---|
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 DisposeBufferCompletionHandler(Buffer buffer)
public void cancelled()
CompletionHandler
cancelled
in interface CompletionHandler
public void failed(Throwable throwable)
CompletionHandler
failed
in interface CompletionHandler
throwable
- error, which occurred during operation executionpublic void completed(Object result)
CompletionHandler
completed
in interface CompletionHandler
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.public void updated(Object result)
CompletionHandler
updated
in interface CompletionHandler
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.protected void disposeBuffer()
Copyright © 2015 Oracle Corporation. All rights reserved.