- Type Parameters:
O - The representation for document output
- All Superinterfaces:
IOEndpoint
public interface OutputCaller<O>extends IOEndpoint
Provides an interface for calling an endpoint
that returns output data structures.
- See Also:
-
-
Nested Class Summary
Nested Classes
static
interface
Provides an interface for completing a unit of
work by repeated calls to the output endpoint.
-
Method Summary
Constructs an instance of a bulk caller, which
completes a unit of work by repeated calls to the endpoint.
Constructs an instance of a bulk caller, which
completes a unit of work by repeated calls to the endpoint.
Constructs an instance of a bulk caller, which
completes a unit of work by repeated calls to the endpoint.
Constructs an instance of a bulk caller, which
completes a unit of work by repeated calls to the endpoint.
Makes one call to an endpoint that doesn't take
endpoint constants, endpoint state, or a session.
Makes one call to the endpoint for the instance
and sets the endpoint state in the Call Context.
Constructs an instance of the OutputCaller
interface.
Constructs an instance of the OutputCaller
interface.
-
Method Details
-
on
Constructs an instance of the OutputCaller
interface.
- Type Parameters:
O - the output content representation (such as
byte[])
- Parameters:
client - the database client to use for making
calls
apiDecl - the JSON api declaration specifying how
to call the endpoint
outputHandle - the handle for the representation
of the output content (such as BytesHandle)
- Returns:
- the OutputCaller instance for calling the endpoint.
-
onHandles
Constructs an instance of the OutputCaller
interface. This factory is useful primarily for parameters or
return values of the anyDocument type.
- Type Parameters:
OC - the content type of the output handle
OR - the type for the data received by the output
handle
O - the output handle
- Parameters:
client - the database client to use for making
calls
apiDecl - the JSON api declaration specifying how
to call the endpoint
outputHandle - the handles that provides the
output content (such as BytesHandle)
- Returns:
- the InputOutputCaller instance for calling the endpoint.
-
call
Makes one call to an endpoint that doesn't take
endpoint constants, endpoint state, or a session.
- Returns:
- the response data from the endpoint
-
call
Makes one call to the endpoint for the instance
and sets the endpoint state in the Call Context.
- Parameters:
callContext - the context consisting of the
optional endpointConstants, endpointState, and session
- Returns:
- the response data from the endpoint
-
bulkCaller
Constructs an instance of a bulk caller, which
completes a unit of work by repeated calls to the endpoint.
- Returns:
- the bulk caller for the output endpoint
-
bulkCaller
Constructs an instance of a bulk caller, which
completes a unit of work by repeated calls to the endpoint. The
calls occur in current thread.
- Parameters:
callContext - the context consisting of the
optional endpointConstants, endpointState, and session
- Returns:
- the bulk caller for the output endpoint
-
bulkCaller
Constructs an instance of a bulk caller, which
completes a unit of work by repeated calls to the endpoint. The
calls occur in worker threads.
- Parameters:
callContexts - the collection of callContexts
- Returns:
- the bulk caller for the output endpoint
-
bulkCaller
Constructs an instance of a bulk caller, which
completes a unit of work by repeated calls to the endpoint. The
calls occur in worker threads.
- Parameters:
callContexts - the collection of callContexts
threadCount - the number of threads
- Returns:
- the bulk caller for the output endpoint
Copyright (c) 2010-2026 Progress
Software Corporation and/or its subsidiaries or affiliates. All
Rights Reserved.