I - The representation for document inputO - The representation for document outputIOEndpoint.BulkIOEndpointCallerInputOutputEndpoint.BulkInputOutputCallerpublic static interface InputOutputCaller.BulkInputOutputCaller<I,O> extends IOEndpoint.BulkIOEndpointCaller
| Modifier and Type | Interface | Description |
|---|---|---|
static interface |
InputOutputCaller.BulkInputOutputCaller.ErrorListener |
A function implementation that specifies the disposition of a failed call.
|
IOEndpoint.BulkIOEndpointCaller.ErrorDisposition| Modifier and Type | Method | Description |
|---|---|---|
void |
accept(I input) |
Accepts an input item for the endpoint.
|
void |
acceptAll(I[] input) |
Accepts multiple input items for the endpoint.
|
void |
setErrorListener(InputOutputCaller.BulkInputOutputCaller.ErrorListener errorListener) |
Provides a callback specifies the disposition of a failed call.
|
void |
setOutputListener(java.util.function.Consumer<O> listener) |
Specifies the function to call on receiving output from the endpoint.
|
awaitCompletion, getEndpointState, getWorkUnit, interrupt, setEndpointState, setEndpointState, setEndpointState, setWorkUnit, setWorkUnit, setWorkUnitvoid setOutputListener(java.util.function.Consumer<O> listener)
listener - a function for processing the endpoint outputvoid accept(I input)
input - one input itemvoid acceptAll(I[] input)
input - multiple input items.void setErrorListener(InputOutputCaller.BulkInputOutputCaller.ErrorListener errorListener)
errorListener - the lambda or other implementation of the error listenerCopyright © 2013-2021 MarkLogic Corporation.