TTL class
Hook that records write time and rejects values after a fixed duration.
Properties
- durationSeconds → int
-
TTL duration in whole seconds.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
postRead(
PHiveCtx ctx) → void - Throws TTLExpiredException when the stored payload is older than allowed.
-
postWrite(
PHiveCtx ctx) → void -
Runs after a field value has been serialized for storage.
inherited
-
preRead(
PHiveCtx ctx) → void -
Runs before adapter logic consumes a value restored from storage.
inherited
-
preWrite(
PHiveCtx ctx) → void - Attaches TTL metadata to the outgoing payload.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited