I - The representation for document inputO - The representation for document outputpublic static interface InputOutputCaller.BulkInputOutputCaller<I,O> extends IOEndpoint.BulkIOEndpointCaller
| Modifier and Type | Interface and Description |
|---|---|
static interface |
InputOutputCaller.BulkInputOutputCaller.ErrorListener
A function implementation that specifies the
disposition of a failed call.
|
IOEndpoint.BulkIOEndpointCaller.ErrorDisposition| Modifier and Type | Method and 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,
interruptvoid 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 © 2024 MarkLogic Corporation. All Rights Reserved.