public abstract class MultiOperationCallback extends java.lang.Object implements OperationCallback
This is useful for the cases where a single request gets split into multiple requests and the callback needs to not know the difference.
| Modifier and Type | Field and Description |
|---|---|
protected OperationCallback |
originalCallback |
| Constructor and Description |
|---|
MultiOperationCallback(OperationCallback original,
int todo)
Get a MultiOperationCallback over the given callback for the specified
number of replicates.
|
| Modifier and Type | Method and Description |
|---|---|
void |
complete()
Called whenever an operation completes.
|
void |
receivedStatus(OperationStatus status)
Method invoked with the status when the operation is complete.
|
protected final OperationCallback originalCallback
public MultiOperationCallback(OperationCallback original, int todo)
original - the original callbacktodo - how many complete() calls we expect before dispatching.public void complete()
OperationCallbackcomplete in interface OperationCallbackpublic void receivedStatus(OperationStatus status)
OperationCallbackreceivedStatus in interface OperationCallbackstatus - the result of the operationCopyright © 2006-2009 Dustin Sallings, 2009-2013 Couchbase, Inc.