Package-level declarations

Types

Link copied to clipboard
interface DeserializeInput<T, LRes>

Defines input to the deserialization step of the pipeline

Link copied to clipboard

Contextual data for stages in the pipeline dealing with high-level requests (i.e., before serialization)

Link copied to clipboard

Contextual data for stages in the pipeline dealing with high-level responses (i.e., after deserialization)

Link copied to clipboard
interface Interceptor<T, HReq, LReq, LRes, HRes>

An object which defines hooks that can execute at critical stages of the mapper request pipeline. Callers can use these hooks to observe or modify the internal steps for executing a high-level operation.

Link copied to clipboard
typealias InterceptorAny = Interceptor<*, *, *, *, *>

A universal interceptor which acts on any type of high-level objects, requests, and responses

Link copied to clipboard
interface LReqContext<T, HReq, LReq> : HReqContext<T, HReq>

Contextual data for stages in the pipeline dealing with low-level requests (i.e., between serialization and low-level invocation)

Link copied to clipboard

Contextual data for stages in the pipeline dealing with low-level responses (i.e., between low-level invocation and deserialization)

Link copied to clipboard
interface MapperContext<T>

Holds generalized context which may be useful to interceptors

Link copied to clipboard
interface SerializeInput<T, HReq>

Defines input to the serialization step of the pipeline

Functions

Link copied to clipboard
fun <T, LRes> DeserializeInput(lowLevelResponse: LRes, deserializeSchema: ItemSchema<T>): DeserializeInput<T, LRes>

Creates a new DeserializeInput

Link copied to clipboard
fun <T, HReq> HReqContext(highLevelRequest: HReq, serializeSchema: ItemSchema<T>, mapperContext: MapperContext<T>, error: Throwable? = null): HReqContext<T, HReq>

Creates a new HReqContext

Link copied to clipboard
fun <T, HReq, LReq, LRes, HRes> HResContext(highLevelRequest: HReq, serializeSchema: ItemSchema<T>, mapperContext: MapperContext<T>, lowLevelRequest: LReq, lowLevelResponse: LRes, deserializeSchema: ItemSchema<T>, highLevelResponse: HRes, error: Throwable? = null): HResContext<T, HReq, LReq, LRes, HRes>

Creates a new HResContext

Link copied to clipboard
fun <T, HReq, LReq> LReqContext(highLevelRequest: HReq, serializeSchema: ItemSchema<T>, mapperContext: MapperContext<T>, lowLevelRequest: LReq, error: Throwable? = null): LReqContext<T, HReq, LReq>

Creates a new LReqContext

Link copied to clipboard
fun <T, HReq, LReq, LRes> LResContext(highLevelRequest: HReq, serializeSchema: ItemSchema<T>, mapperContext: MapperContext<T>, lowLevelRequest: LReq, lowLevelResponse: LRes, deserializeSchema: ItemSchema<T>, error: Throwable? = null): LResContext<T, HReq, LReq, LRes>

Creates a new LResContext

Link copied to clipboard
fun <T> MapperContext(persistenceSpec: PersistenceSpec<T>, operation: String): MapperContext<T>

Create a new MapperContext

Link copied to clipboard
fun <T, HReq> SerializeInput(highLevelRequest: HReq, serializeSchema: ItemSchema<T>): SerializeInput<T, HReq>

Creates a new SerializeInput