Package interlok.rabbitmq
Class ExplicitQueue
java.lang.Object
interlok.rabbitmq.ExplicitQueue
- All Implemented Interfaces:
Declaration.QueueDeclaration
@ComponentProfile(summary="Explicitly declare a RabbitMQ Queue before use",
since="4.3.0")
public class ExplicitQueue
extends Object
implements Declaration.QueueDeclaration
Explicitly configured Queue declaration.
Depending on your RabbitMQ Configuration you may wish to explicitly declare a queue before use. In the absence of any other configuration Interlok assumes that queues should be durable, non-exclusive and should not be automatically deleted if not in use. If your expectations are different then you should definitely configure one of these.
This implementation does not support queue declaration arguments (these are are a Map<String, Object> which is hard to support in
configuration).
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidDeclare the queue.Whether or not the queue is deleted when no longer in use.Whether or not the queue should survive a server restart.Whether or not the queue is exlusive to the connection.voidsetAutoDelete(Boolean autoDelete) Whether or not the queue is deleted when no longer in use.voidsetDurable(Boolean durable) Whether or not the queue should survive a server restart.voidsetExclusive(Boolean exclusive) Whether or not the queue is exlusive to the connection.
-
Constructor Details
-
ExplicitQueue
public ExplicitQueue()
-
-
Method Details
-
declare
Description copied from interface:Declaration.QueueDeclarationDeclare the queue.- Specified by:
declarein interfaceDeclaration.QueueDeclaration- Parameters:
ch- the channel to use to declare the queue.name- the name of the queue.- Throws:
Exception
-
getDurable
Whether or not the queue should survive a server restart. -
setDurable
Whether or not the queue should survive a server restart. -
getExclusive
Whether or not the queue is exlusive to the connection. -
setExclusive
Whether or not the queue is exlusive to the connection. -
getAutoDelete
Whether or not the queue is deleted when no longer in use. -
setAutoDelete
Whether or not the queue is deleted when no longer in use.
-