public interface ExecCaller extends IOEndpoint
Modifier and Type | Interface and Description |
---|---|
static interface |
ExecCaller.BulkExecCaller
Provides an interface for completing a unit of
work by repeated calls to an endpoint that doesn't take input data
structure or return output data structures.
|
IOEndpoint.BulkIOEndpointCaller,
IOEndpoint.CallContext
Modifier and Type | Method and Description |
---|---|
ExecCaller.BulkExecCaller |
bulkCaller()
Constructs an instance of a bulk caller, which
completes a unit of work by repeated calls to the endpoint.
|
ExecCaller.BulkExecCaller |
bulkCaller(IOEndpoint.CallContext callContext)
Constructs an instance of a bulk caller, which
completes a unit of work by repeated calls to the endpoint.
|
ExecCaller.BulkExecCaller |
bulkCaller(IOEndpoint.CallContext[] callContexts)
Constructs an instance of a bulk caller, which
completes a unit of work by repeated calls to the endpoint.
|
ExecCaller.BulkExecCaller |
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()
Makes one call to an endpoint that doesn't take
endpoint constants, endpoint state, or a session.
|
void |
call(IOEndpoint.CallContext callContext)
Makes one call to the endpoint for the instance
and sets the endpoint state in the Call Context.
|
static ExecCaller |
on(DatabaseClient client,
JSONWriteHandle apiDecl)
Constructs an instance of the ExecCaller
interface for calling the specified endpoint.
|
allowsEndpointConstants,
allowsEndpointState,
allowsInput,
allowsSession,
getEndpointPath,
newCallContext,
newSessionState
static ExecCaller on(DatabaseClient client, JSONWriteHandle apiDecl)
client
- the database client to use for making
callsapiDecl
- the JSON api declaration specifying how
to call the endpointvoid call()
void call(IOEndpoint.CallContext callContext)
callContext
- the context consisting of the
optional endpointConstants, endpointState, and sessionExecCaller.BulkExecCaller bulkCaller()
ExecCaller.BulkExecCaller bulkCaller(IOEndpoint.CallContext callContext)
callContext
- the context consisting of the
optional endpointConstants, endpointState, and sessionExecCaller.BulkExecCaller bulkCaller(IOEndpoint.CallContext[] callContexts)
callContexts
- array of callContextsExecCaller.BulkExecCaller bulkCaller(IOEndpoint.CallContext[] callContexts, int threadCount)
callContexts
- array of callContextsthreadCount
- the number of threadsCopyright © 2024 MarkLogic Corporation. All Rights Reserved.