O
- The representation for document outputIOEndpoint
OutputEndpoint
public interface OutputCaller<O> extends IOEndpoint
Modifier and Type | Interface | 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 | 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.
|
static <OC,OR,O extends BufferableContentHandle<OC,OR>> |
onHandles(DatabaseClient client,
JSONWriteHandle apiDecl,
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)static <OC,OR,O extends BufferableContentHandle<OC,OR>> OutputCaller<O> onHandles(DatabaseClient client, JSONWriteHandle apiDecl, O outputHandle)
OC
- the content type of the output handleOR
- the type for the data received by the output
handleO
- the output handleclient
- the database client to use for making
callsapiDecl
- the JSON api declaration specifying how
to call the endpointoutputHandle
- the handles that provides 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 © 2022 MarkLogic Corporation