Package-level declarations

Types

Link copied to clipboard

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, S : ItemSchema<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

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

Link copied to clipboard
interface LReqContext<T, S : ItemSchema<T>, HReq, LReq> : HReqContext<T, S, 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, S : ItemSchema<T>, HReq>

Defines input to the serialization step of the pipeline

Functions

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

Creates a new DeserializeInput

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

Creates a new HReqContext

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

Creates a new HResContext

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

Creates a new LReqContext

Link copied to clipboard
fun <T, S : ItemSchema<T>, HReq, LReq, LRes> LResContext(highLevelRequest: HReq, serializeSchema: S, mapperContext: MapperContext<T>, lowLevelRequest: LReq, lowLevelResponse: LRes, deserializeSchema: S, error: Throwable? = null): LResContext<T, S, 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, S : ItemSchema<T>, HReq> SerializeInput(highLevelRequest: HReq, serializeSchema: S): SerializeInput<T, S, HReq>

Creates a new SerializeInput