I
- The representation for document inputO
- The representation for document outputpublic interface InputOutputCaller<I,O> extends IOEndpoint
Modifier and Type | Interface and Description |
---|---|
static interface |
InputOutputCaller.BulkInputOutputCaller<I,O>
Provides an interface for completing a unit of
work by repeated calls to the input-output endpoint.
|
IOEndpoint.BulkIOEndpointCaller,
IOEndpoint.CallContext
Modifier and Type | Method and Description |
---|---|
InputOutputCaller.BulkInputOutputCaller<I,O> |
bulkCaller()
Constructs an instance of a bulk caller, which
completes a unit of work by repeated calls to the endpoint.
|
InputOutputCaller.BulkInputOutputCaller<I,O> |
bulkCaller(IOEndpoint.CallContext callContext)
Constructs an instance of a bulk caller, which
completes a unit of work by repeated calls to the endpoint.
|
InputOutputCaller.BulkInputOutputCaller<I,O> |
bulkCaller(IOEndpoint.CallContext[] callContexts)
Constructs an instance of a bulk caller, which
completes a unit of work by repeated calls to the endpoint.
|
InputOutputCaller.BulkInputOutputCaller<I,O> |
bulkCaller(IOEndpoint.CallContext[] callContexts,
int threadCount)
Constructs an instance of a bulk caller, which
completes a unit of work by repeated calls to the endpoint.
|
O[] |
call(I[] input)
Makes one call to an endpoint that doesn't take
endpoint constants, endpoint state, or a session.
|
O[] |
call(IOEndpoint.CallContext callContext,
I[] input)
Makes one call to an endpoint that sets endpoint
constants, endpoint state, or a session in the Call Context.
|
static <I,O> InputOutputCaller<I,O> |
on(DatabaseClient client,
JSONWriteHandle apiDecl,
BufferableContentHandle<I,?> inputHandle,
BufferableContentHandle<O,?> outputHandle)
Constructs an instance of the InputOutputCaller
interface.
|
static <IC,IR,OC,OR,I extends
BufferableContentHandle<IC,IR>,O
extends BufferableContentHandle<OC,OR>> |
onHandles(DatabaseClient client,
JSONWriteHandle apiDecl,
I inputHandle, O outputHandle)
Constructs an instance of the InputOutputCaller
interface.
|
allowsEndpointConstants,
allowsEndpointState,
allowsInput,
allowsSession,
getEndpointPath,
newCallContext,
newSessionState
static <I,O> InputOutputCaller<I,O> on(DatabaseClient client, JSONWriteHandle apiDecl, BufferableContentHandle<I,?> inputHandle, BufferableContentHandle<O,?> outputHandle)
I
- the content representation (such as
String)O
- the output content representation (such as
byte[])client
- the database client to use for making
callsapiDecl
- the JSON api declaration specifying how
to call the endpointinputHandle
- the handle for the representation of
the input content (such as StringHandle)outputHandle
- the handle for the representation
of the output content (such as BytesHandle)static <IC,IR,OC,OR,I extends BufferableContentHandle<IC,IR>,O extends BufferableContentHandle<OC,OR>> InputOutputCaller<I,O> onHandles(DatabaseClient client, JSONWriteHandle apiDecl, I inputHandle, O outputHandle)
IC
- the content type of the input handleIR
- the type for the data received by the input
handleOC
- the content type of the output handleOR
- the type for the data received by the output
handleI
- the input handleO
- the output handleclient
- the database client to use for making
callsapiDecl
- the JSON api declaration specifying how
to call the endpointinputHandle
- the handles that provides the input
content (such as StringHandle)outputHandle
- the handles that provides the
output content (such as BytesHandle)O[] call(I[] input)
input
- the request data sent to the endpointO[] call(IOEndpoint.CallContext callContext, I[] input)
callContext
- the context consisting of the
optional endpointConstants, endpointState, and sessioninput
- the request data sent to the endpointInputOutputCaller.BulkInputOutputCaller<I,O> bulkCaller()
InputOutputCaller.BulkInputOutputCaller<I,O> bulkCaller(IOEndpoint.CallContext callContext)
callContext
- the context consisting of the
optional endpointConstants, endpointState, and sessionInputOutputCaller.BulkInputOutputCaller<I,O> bulkCaller(IOEndpoint.CallContext[] callContexts)
callContexts
- the collection of callContextsInputOutputCaller.BulkInputOutputCaller<I,O> bulkCaller(IOEndpoint.CallContext[] callContexts, int threadCount)
callContexts
- the collection of callContextsthreadCount
- the number of threadsCopyright © 2024 MarkLogic Corporation. All Rights Reserved.