Abstract contract for durable and distributed job queues in MetaMantle.
- Implementers
Properties
- capabilities → QueueCapabilities
-
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
cancel(
String id) → Future< RegenerationJob> -
checkpoint(
) → Future< void> - Forces an atomic compaction checkpoint of the write-ahead journal to a snapshot.
-
claimNext(
{DateTime? now, Duration lease = const Duration(minutes: 2)}) → Future< RegenerationJob?> -
cleanupCompleted(
{Duration maxAge = const Duration(days: 7)}) → Future< int> -
complete(
String id, {required String leaseToken}) → Future< RegenerationJob> -
enqueue(
{required String siteId, required String tenantId, required String path, required String routeId, required List< String> tags, required String idempotencyKey, String? sourceVersion, int maxAttempts = 5, DateTime? now}) → Future<RegenerationJob> -
enqueueAll(
List< RegenerationJobRequest> requests, {DateTime? now}) → Future<List< RegenerationJob> > -
fail(
String id, {required String leaseToken, required String errorCode, DateTime? now}) → Future< RegenerationJob> -
getById(
String id) → Future< RegenerationJob?> -
list(
) → Future< List< RegenerationJob> > -
metrics(
) → Future< QueueMetrics> -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
recover(
) → Future< QueueRecoveryReport> - Validates journal and index consistency, repairing any crash-interrupted writes.
-
renewLease(
String id, {required String leaseToken, Duration extension = const Duration(minutes: 2), DateTime? now}) → Future< RegenerationJob> -
Extends the lease duration of an actively processing job owned by
leaseToken. -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited