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 resultpublic void updated(Object result)
CompletionHandler
updated
in interface CompletionHandler
result
- the current resultprotected void disposeBuffer()
Copyright © 2014 Oracle Corporation. All rights reserved.