IOEndpoint
public interface InputEndpoint extends IOEndpoint
Modifier and Type | Interface | Description |
---|---|---|
static interface |
InputEndpoint.BulkInputCaller |
Provides an interface for completing a unit of
work by repeated calls to the input endpoint.
|
IOEndpoint.BulkIOEndpointCaller,
IOEndpoint.CallContext
Modifier and Type | Method | Description |
---|---|---|
InputEndpoint.BulkInputCaller |
bulkCaller() |
Deprecated.
|
InputEndpoint.BulkInputCaller |
bulkCaller(IOEndpoint.CallContext callContext) |
Constructs an instance of a bulk caller, which
completes a unit of work by repeated calls to the endpoint.
|
InputEndpoint.BulkInputCaller |
bulkCaller(IOEndpoint.CallContext[] callContexts) |
Constructs an instance of a bulk caller, which
completes a unit of work by repeated calls to the endpoint.
|
InputEndpoint.BulkInputCaller |
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(IOEndpoint.CallContext callContext,
java.io.InputStream[] input) |
Makes one call to the endpoint for the instance
and sets the endpoint state in the Call Context.
|
void |
call(java.io.InputStream[] input) |
Makes one call to an endpoint that doesn't take
an endpoint state, session, or work unit.
|
java.io.InputStream |
call(java.io.InputStream endpointState,
SessionState session,
java.io.InputStream workUnit,
java.io.InputStream[] input) |
Deprecated.
|
static InputEndpoint |
on(DatabaseClient client,
JSONWriteHandle apiDecl) |
Constructs an instance of the InputEndpoint
interface.
|
allowsEndpointState,
allowsInput,
allowsSession,
allowsWorkUnit,
getEndpointPath,
newCallContext,
newSessionState
static InputEndpoint 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(java.io.InputStream[] input)
input
- the request data sent to the endpoint@Deprecated java.io.InputStream call(java.io.InputStream endpointState, SessionState session, java.io.InputStream workUnit, java.io.InputStream[] input)
endpointState
- the current mutable state of the
endpoint (which must be null if not accepted by the endpoint)session
- the identifier for the server cache of
the endpoint (which must be null if not accepted by the
endpoint)workUnit
- the definition of a unit of work (which
must be null if not accepted by the endpoint)input
- the request data sent to the endpoint@Deprecated InputEndpoint.BulkInputCaller bulkCaller()
void call(IOEndpoint.CallContext callContext, java.io.InputStream[] input)
callContext
- the collection of endpointState,
sessionState and workUnitinput
- the request data sent to the endpointInputEndpoint.BulkInputCaller bulkCaller(IOEndpoint.CallContext callContext)
callContext
- the collection of endpointState,
sessionState and workUnitInputEndpoint.BulkInputCaller bulkCaller(IOEndpoint.CallContext[] callContexts)
callContexts
- the collection of callContextsInputEndpoint.BulkInputCaller bulkCaller(IOEndpoint.CallContext[] callContexts, int threadCount)
callContexts
- the collection of callContextsthreadCount
- the number of threadsCopyright © 2013-2019 MarkLogic Corporation.