DVJobPayloadCodecs class
Codecs that let DVDatabaseQueueAdapter persist job payloads.
In-memory queues keep the Dart object itself and need no codec. A durable queue has to write bytes, so every persisted payload type must be registered; enqueueing an unregistered type fails loudly rather than storing something that cannot be read back.
Constructors
- DVJobPayloadCodecs()
-
const
Properties
Methods
-
clear(
) → void -
decodeNamed(
String name, Map< String, Object?> json) → DVJobPayload? -
Decodes a payload previously encoded under
name. -
encodeFor<
TPayload> (TPayload payload) → Map< String, Object?> -
Encodes
payloadwith its registered codec. -
nameFor<
TPayload> () → String? -
The codec name registered for
TPayload, or null when none is. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
register<
TPayload> (DVJobPayloadCodec< TPayload> codec) → void -
supports(
Type type) → bool -
toString(
) → String -
A string representation of this object.
inherited
-
typeNamed(
String name) → Type? -
The runtime type registered under
name, for rebuilding an envelope.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited