cbq
2.1.0
2.1.0
  • Home
  • What's New?
  • Getting Started
    • Installation
    • Walkthrough
  • Configuration
    • Module Settings
    • Config File
      • Queue Connection
      • Worker Pool
    • Providers
      • SyncProvider
      • ColdBoxAsyncProvider
      • DBProvider
  • Jobs
    • Defining a Job
    • Creating a Job
    • Dispatching a Job
    • Working a Job
    • Failed Jobs
    • Chained Jobs
    • Batched Jobs
  • cbq Model
  • Interceptors
  • Other
    • Contributing
    • Contributors
    • Prior Art
    • Dedication
Powered by GitBook
On this page
  1. Configuration
  2. Config File

Queue Connection

PreviousConfig FileNextWorker Pool

Last updated 1 year ago

A Queue Connection is defined inside your cbq config file using a QueueConnectionDefinition builder component. You can create one of these builder components using the method.

QueueConnectionDefinition Methods

provider

Sets the provider for the Queue Connection. This can be any valid WireBox mapping and should implement the IQueueProvider interface. (There is no need to use the implements keyword.)

Arguments
Type
Required
Default
Description

provider

string

true

A valid WireBox mapping to the desired Provider.

setProvider

Alias for .

setProperties

Accepts a struct of properties to configure the Queue Connection. The available properties are usually defined by the Queue Provider being used.

setDefaultQueue

Sets the default queue to use for jobs dispatched on this Queue Connection.

markAsDefault

Marks this Queue Connection as the default Queue Connection for jobs dispatched without specifying a Queue Connection.

setMakeDefault

Alias for .

provider
markAsDefault
newConnection