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 newConnection 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.)