DVQueues class
Constructors
- DVQueues()
-
const
Properties
- adapterConfigured → bool
-
Whether anything configured an adapter. False means this process is on
the process-local default, which no other process can reach.
no setter
- hasHandlers → bool
-
Whether any job handler is registered in this process.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- namespace → String?
-
The namespace this process's queues are under, or null.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
deadLetters(
[String queue = 'default']) → Future< List< DVJobEnvelope< >DVJobPayload> > -
discard(
String id) → Future< bool> - Drops one dead-lettered job, for a message that will never succeed.
-
dispatch<
TPayload> (TPayload payload, {String queue = 'default', int priority = 0, int maxAttempts = 3, Duration backoff = const Duration(seconds: 30)}) → Future< DVJobEnvelope< TPayload> > -
flush(
{String queue = 'default'}) → Future< int> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
pending(
[String queue = 'default']) → Future< List< DVJobEnvelope< >DVJobPayload> > -
register<
TPayload> (DVJobHandler< TPayload> handler) → void -
retry(
String id) → Future< bool> -
toString(
) → String -
A string representation of this object.
inherited
-
useAdapter(
DVQueueAdapter adapter) → void -
useNamespace(
String? namespace) → void -
Puts every queue this process dispatches to, works, lists or flushes
under
namespace, as<namespace>.<queue>. Null for none. -
work(
{String queue = 'default', int maxJobs = 1}) → Future< int>
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
- onJobDeadLettered ↔ void Function(Object error, StackTrace stack)?
-
Told about a job whose last attempt failed and was dead-lettered. The
generated backend records it as an unhandled error of the worker.
getter/setter pair