public class ChunkedCompletionHandler extends Object implements CompletionHandler<WriteResult>
| Modifier and Type | Field and Description |
|---|---|
protected int |
chunksCounter |
| Constructor and Description |
|---|
ChunkedCompletionHandler(CompletionHandler<WriteResult> parentCompletionHandler) |
| Modifier and Type | Method and Description |
|---|---|
void |
cancelled()
The operation was cancelled.
|
void |
completed(WriteResult result)
The operation was completed.
|
protected void |
done0() |
void |
failed(Throwable throwable)
The operation was failed.
|
void |
incChunks() |
void |
updated(WriteResult result)
The callback method may be called, when there is some progress in
operation execution, but it is still not completed
|
public ChunkedCompletionHandler(CompletionHandler<WriteResult> parentCompletionHandler)
public void incChunks()
public void cancelled()
CompletionHandlercancelled in interface CompletionHandler<WriteResult>public void failed(Throwable throwable)
CompletionHandlerfailed in interface CompletionHandler<WriteResult>throwable - error, which occurred during operation executionpublic void completed(WriteResult result)
CompletionHandlercompleted in interface CompletionHandler<WriteResult>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(WriteResult result)
CompletionHandlerupdated in interface CompletionHandler<WriteResult>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 done0()
Copyright © 2024 Oracle Corporation. All rights reserved.