TtlInterceptor

class TtlInterceptor(clock: Clock = Clock.System) : Interceptor<Any, ItemSchema<Any>, Any, Any, Any, Any>

Interceptor that handles TTL fields defined on schema attributes and sets them to the current time plus their specified lifetimes. This affects the following operations:

TTL fields are read from the schema associated with each operation. For the single-item operations this is the operation's serialize schema; for the multi-table operations (BatchWriteItem and TransactWriteItems) the operation-level schema is a placeholder, so the per-table schemas carried by the request are used instead.

Constructors

Link copied to clipboard
constructor(clock: Clock = Clock.System)

Functions

Link copied to clipboard

A modify hook that runs before the Low-level invocation step

Link copied to clipboard

A modify hook that runs before the Serialization step

Inherited functions

Link copied to clipboard

A modify hook that runs before the Completion step

Link copied to clipboard

A modify hook that runs before the Deserialization step

Link copied to clipboard

A read-only hook that runs after the Deserialization step

Link copied to clipboard

A read-only hook that runs after the Initialization step

Link copied to clipboard

A read-only hook that runs after the Low-level invocation step

Link copied to clipboard

A read-only hook that runs after the Serialization step

Link copied to clipboard

A read-only hook that runs before the Completion step

Link copied to clipboard

A read-only hook that runs before the Deserialization step

Link copied to clipboard

A read-only hook that runs before the Low-level invocation step

Link copied to clipboard

A read-only hook that runs before the Serialization step