CloudflareJobQueue class final

Publishes Routed jobs to one Cloudflare Queue binding.

Cloudflare delivers queue messages to a Worker queue handler. That handler should decode the body as a JobMessage, call JobConsumer.process, and map the result to Cloudflare's per-message acknowledgement and retry API. This adapter is producer-only; it does not invent a polling worker model for Workers.

Constructors

CloudflareJobQueue(CloudflareQueue queue)
Creates a producer for queue.

Properties

hashCode int
The hash code for this object.
no setterinherited
queue CloudflareQueue
Cloudflare Queue producer binding.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
publish(JobMessage message) Future<void>
Publishes message to its queue.
override
toString() String
A string representation of this object.
inherited

Operators

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