Classes

c
MemoryQueue()

In-memory queue adapter implementation.

c
QueueBackendUnavailableError(
backend: string,
specifier: string
)

Thrown by a queue backend's connect() when the runtime platform is Cloudflare Workers and the SDK cannot function. The throw fails app.start() at the earliest possible point.

c
RabbitMqQueue(
runtime: IRuntimeServices,
options?: RabbitMqQueueOptions
)

RabbitMQ queue adapter implementation.

c
RedisQueue(options?: RedisQueueOptions)

Redis queue adapter implementation.

c
SqsDelayTooLongError(delayMs: number)

Thrown by SqsQueue when a job delay exceeds SQS's 900 s DelaySeconds ceiling. The delay is NOT clamped (a clamp runs the job early); the caller must adjust the value.

c
SqsQueue(
runtime: IRuntimeServices,
options: SqsQueueOptions,
logger?: { error: (msg: string) => void; }
)

SQS queue adapter.

c
SqsQueueNotConfiguredError(
jobName: string,
configuredNames: readonly string[]
)

Thrown by SqsQueue when a job name is not mapped in the queues configuration. The error message names the job name and the configured names.

Functions

Interfaces

I
AddJobOptions

Options accepted when enqueueing a job.

I
IJob

A queued job delivered to a processor.

I
ISnsTransport

Domain port for SNS operations.

I
ISqsTransport

Domain port for SQS operations. The adapter depends on this, not the SDK.

I
ProcessOptions

Options accepted when registering a processor.

I
QueueDepths

How many jobs are in each of one name's states.

I
QueueLogger

Minimal logger surface the service reports through — structurally compatible with ILogger so the plugin can pass the resolved logger capability without this package depending on the logger plugin.

I
QueuePluginOptions

Options for configuring the queue plugin.

I
QueueProcessorDefinition

The declarative form of one IQueue.process() call — the entry an application writes instead of calling process() imperatively after start().

I
RabbitMqQueueOptions

Options for configuring RabbitMqQueue.

I
RecurringOptions

Options accepted when scheduling a recurring job.

I
RedisQueueOptions

Options for configuring RedisQueue.

I
SnsPublisherOptions

Options for SNS publisher.

I
SqsQueueOptions

Options for SQS queue adapter.

I
SqsReceivedMessage

A message received from SQS with its receipt handle.

Type Aliases

T
QueueAdapterType = "memory" | "redis" | "rabbitmq" | "sqs"

Queue adapter type for plugin configuration.

T
QueueProcessorEntry =
QueueProcessorDefinition
| RegistryFactory<QueueProcessorDefinition>

One entry of QueuePluginOptions.processors: a processor definition, or a RegistryFactory producing one when the processor needs a resolved capability.