The message payload type this queue carries.
Constructs a QueueBinding instance.
The message payload type this queue carries.
Optionalsettings: QueueSettings
Resolved settings. Defaults to resolve('queue'), so callers
normally construct this with no arguments at all.
Private Optional ReadonlycontentDefault content type applied to sends.
Private Optional ReadonlydelayDefault delivery delay applied to sends, in seconds.
Private ReadonlysettingsThis accessor’s settings, resolved on first read.
The binding name this instance resolves.
The binding name as declared in wrangler.json.
Checks whether the binding is available on the given environment.
Use this to degrade gracefully when a binding is optional.
The Worker environment.
true when the binding is present.
Reads the queue's current backlog metrics.
The Worker environment.
The queue metrics.
Resolves the binding, failing fast when it is not configured.
The Worker environment.
The resolved binding.
MissingBindingError When the binding is absent from the environment.
Sends a single message.
The send acknowledgement.
MissingBindingError When the queue binding is absent.
Privatewith
Accessor for the Queues producer binding (
queues.producersinwrangler.json).Example
Author
Bayu Dwiyan Satria
Version
1.0.0
Since
1.0.0