Package-level declarations

RPC endpoints allow you to interact with non-RESTful resources that act like callable functions.

Types

Link copied to clipboard
abstract class AbstractRpcEndpoint(referrer: Endpoint, relativeUri: URI) : AbstractEndpoint, RpcEndpoint

Base class for building RPC endpoints.

Link copied to clipboard

RPC endpoint that is invoked with no input or output.

Link copied to clipboard
open class ActionEndpointImpl(referrer: Endpoint, relativeUri: URI) : AbstractRpcEndpoint, ActionEndpoint

RPC endpoint that is invoked with no input or output.

Link copied to clipboard

RPC endpoint that takes TEntity as input when invoked.

Link copied to clipboard
open class ConsumerEndpointImpl<TEntity>(referrer: Endpoint, relativeUri: URI, entityType: Type) : AbstractRpcEndpoint, ConsumerEndpoint<TEntity>

RPC endpoint that takes TEntity as input when invoked.

Link copied to clipboard

RPC endpoint that takes TEntity as input and returns TResult as output when invoked.

Link copied to clipboard
open class FunctionEndpointImpl<TEntity, TResult>(referrer: Endpoint, relativeUri: URI, entityType: Type, resultType: Type) : AbstractRpcEndpoint, FunctionEndpoint<TEntity, TResult>

RPC endpoint that takes TEntity as input and returns TResult as output when invoked.

Link copied to clipboard

RPC endpoint that takes no input and returns TResult as output when invoked.

Link copied to clipboard
open class ProducerEndpointImpl<TResult>(referrer: Endpoint, relativeUri: URI, resultType: Type) : AbstractRpcEndpoint, ProducerEndpoint<TResult>

RPC endpoint that takes no input and returns TResult as output when invoked.

Link copied to clipboard
interface RpcEndpoint : Endpoint

An endpoint for a non-RESTful resource that acts like a callable function.

Functions

Link copied to clipboard
inline fun <reified TEntity> ConsumerEndpointImpl(referrer: Endpoint, relativeUri: URI): ConsumerEndpointImpl<TEntity>
inline fun <reified TEntity> ConsumerEndpointImpl(referrer: Endpoint, relativeUri: String): ConsumerEndpointImpl<TEntity>

Creates a new consumer endpoint, taking the entity type from the reified type argument.

Link copied to clipboard
inline fun <reified TEntity, reified TResult> FunctionEndpointImpl(referrer: Endpoint, relativeUri: URI): FunctionEndpointImpl<TEntity, TResult>
inline fun <reified TEntity, reified TResult> FunctionEndpointImpl(referrer: Endpoint, relativeUri: String): FunctionEndpointImpl<TEntity, TResult>

Creates a new function endpoint, taking the entity and result types from the reified type arguments.

Link copied to clipboard
inline fun <reified TResult> ProducerEndpointImpl(referrer: Endpoint, relativeUri: URI): ProducerEndpointImpl<TResult>
inline fun <reified TResult> ProducerEndpointImpl(referrer: Endpoint, relativeUri: String): ProducerEndpointImpl<TResult>

Creates a new producer endpoint, taking the result type from the reified type argument.