TimerFlushPolicy class

Flushes on a wall-clock interval.

Inheritance

Constructors

TimerFlushPolicy(Duration interval)
Creates a policy that sets shouldFlush every interval.

Properties

hashCode int
The hash code for this object.
no setterinherited
interval Duration
Time between automatic flush signals.
final
onFlushRequested ↔ void Function()?
Set by the delivery engine so a policy can wake it the moment a flush is due. Not intended to be assigned by policy implementations.
getter/setter pairinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
shouldFlush bool
When true, the engine should flush pending deliveries.
getter/setter pairinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
onEvent(LiquidMessage message) → void
Called for every message accepted into the delivery path (including batch-mode enqueues).
inherited
reset() → void
Called after a flush so the policy can restart its counters/timers.
inherited
start() → void
Called once when the policy is attached to a running client.
override
stop() → void
Called when the client is disposed.
override
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited