O
- The representation for document outputpublic interface OutputCaller<O> extends IOEndpoint
Modifier and Type | Interface and Description |
---|---|
static interface |
OutputCaller.BulkOutputCaller<O>
Provides an interface for completing a unit of work
by repeated calls to the output endpoint.
|
IOEndpoint.BulkIOEndpointCaller, IOEndpoint.CallContext
Modifier and Type | Method and Description |
---|---|
OutputCaller.BulkOutputCaller<O> |
bulkCaller()
Constructs an instance of a bulk caller, which completes
a unit of work by repeated calls to the endpoint.
|
OutputCaller.BulkOutputCaller<O> |
bulkCaller(IOEndpoint.CallContext callContext)
Constructs an instance of a bulk caller, which completes
a unit of work by repeated calls to the endpoint.
|
OutputCaller.BulkOutputCaller<O> |
bulkCaller(IOEndpoint.CallContext[] callContexts)
Constructs an instance of a bulk caller, which completes
a unit of work by repeated calls to the endpoint.
|
OutputCaller.BulkOutputCaller<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()
Makes one call to an endpoint that doesn't take endpoint constants, endpoint state, or a session.
|
O[] |
call(IOEndpoint.CallContext callContext)
Makes one call to the endpoint for the instance and sets the endpoint state in the Call Context.
|
static <O> OutputCaller<O> |
on(DatabaseClient client,
JSONWriteHandle apiDecl,
BufferableContentHandle<O,?> outputHandle)
Constructs an instance of the OutputCaller interface.
|
allowsEndpointConstants, allowsEndpointState, allowsInput, allowsSession, allowsWorkUnit, getEndpointPath, newCallContext, newSessionState
static <O> OutputCaller<O> on(DatabaseClient client, JSONWriteHandle apiDecl, BufferableContentHandle<O,?> outputHandle)
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 endpointoutputHandle
- the handle for the representation of the output content (such as BytesHandle)O[] call()
O[] call(IOEndpoint.CallContext callContext)
callContext
- the context consisting of the optional endpointConstants, endpointState, and sessionOutputCaller.BulkOutputCaller<O> bulkCaller()
OutputCaller.BulkOutputCaller<O> bulkCaller(IOEndpoint.CallContext callContext)
callContext
- the context consisting of the optional endpointConstants, endpointState, and sessionOutputCaller.BulkOutputCaller<O> bulkCaller(IOEndpoint.CallContext[] callContexts)
callContexts
- the collection of callContextsOutputCaller.BulkOutputCaller<O> bulkCaller(IOEndpoint.CallContext[] callContexts, int threadCount)
callContexts
- the collection of callContextsthreadCount
- the number of threadsCopyright © 2013-2020 MarkLogic Corporation.