I
- The representation for document inputpublic interface InputCaller<I> extends IOEndpoint
Modifier and Type | Interface and Description |
---|---|
static interface |
InputCaller.BulkInputCaller<I>
Provides an interface for completing a unit of work
by repeated calls to the input endpoint.
|
IOEndpoint.BulkIOEndpointCaller, IOEndpoint.CallContext
Modifier and Type | Method and Description |
---|---|
InputCaller.BulkInputCaller<I> |
bulkCaller()
Constructs an instance of a bulk caller, which completes
a unit of work by repeated calls to the endpoint.
|
InputCaller.BulkInputCaller<I> |
bulkCaller(IOEndpoint.CallContext callContext)
Constructs an instance of a bulk caller, which completes
a unit of work by repeated calls to the endpoint.
|
InputCaller.BulkInputCaller<I> |
bulkCaller(IOEndpoint.CallContext[] callContexts)
Constructs an instance of a bulk caller, which completes
a unit of work by repeated calls to the endpoint.
|
InputCaller.BulkInputCaller<I> |
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.
|
void |
call(I[] input)
Makes one call to an endpoint that doesn't take endpoint constants, endpoint state, or a session.
|
void |
call(IOEndpoint.CallContext callContext,
I[] input)
Makes one call to the endpoint for the instance and sets the endpoint state in the Call Context.
|
static <I> InputCaller<I> |
on(DatabaseClient client,
JSONWriteHandle apiDecl,
BufferableContentHandle<I,?> inputHandle)
Constructs an instance of the InputCaller interface.
|
static <IC,IR,I extends BufferableContentHandle<IC,IR>> |
onHandles(DatabaseClient client,
JSONWriteHandle apiDecl,
I inputHandle)
Constructs an instance of the InputCaller interface.
|
allowsEndpointConstants, allowsEndpointState, allowsInput, allowsSession, allowsWorkUnit, getEndpointPath, newCallContext, newSessionState
static <I> InputCaller<I> on(DatabaseClient client, JSONWriteHandle apiDecl, BufferableContentHandle<I,?> inputHandle)
I
- the input content representation (such as String)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)static <IC,IR,I extends BufferableContentHandle<IC,IR>> InputCaller<I> onHandles(DatabaseClient client, JSONWriteHandle apiDecl, I inputHandle)
IC
- the content type of the input handleIR
- the type for the data received by the input handleI
- the input 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)void call(I[] input)
input
- the request data sent to the endpointvoid call(IOEndpoint.CallContext callContext, I[] input)
callContext
- the context consisting of the optional endpointConstants, endpointState, and sessioninput
- the request data sent to the endpointInputCaller.BulkInputCaller<I> bulkCaller()
InputCaller.BulkInputCaller<I> bulkCaller(IOEndpoint.CallContext callContext)
callContext
- the context consisting of the optional endpointConstants, endpointState, and sessionInputCaller.BulkInputCaller<I> bulkCaller(IOEndpoint.CallContext[] callContexts)
callContexts
- the collection of callContextsInputCaller.BulkInputCaller<I> bulkCaller(IOEndpoint.CallContext[] callContexts, int threadCount)
callContexts
- the collection of callContextsthreadCount
- the number of threadsCopyright © 2013-2021 MarkLogic Corporation.