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

hashCode → int
The hash code for this object.
no setterinherited
names → List<String>
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

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 payload with 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