Class QueueDeclarator
- java.lang.Object
-
- com.github.fridujo.rabbitmq.mock.configuration.QueueDeclarator
-
public class QueueDeclarator extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description com.rabbitmq.client.AMQP.Queue.DeclareOkdeclare(MockChannel channel)com.rabbitmq.client.AMQP.Queue.DeclareOkdeclare(com.rabbitmq.client.Channel channel)static QueueDeclaratordynamicQueue()static QueueDeclaratorqueue(String queueName)QueueDeclaratorwithDeadLetterExchange(String deadLetterExchange)QueueDeclaratorwithDeadLetterRoutingKey(String deadLetterRoutingKey)QueueDeclaratorwithMaxLength(int maxLength)QueueDeclaratorwithMaxLengthBytes(int maxLengthBytes)QueueDeclaratorwithMaxPriority(int maxPriority)QueueDeclaratorwithMessageTtl(long messageTtlInMs)QueueDeclaratorwithOverflow(AmqArguments.Overflow overflow)
-
-
-
Method Detail
-
queue
public static QueueDeclarator queue(String queueName)
-
dynamicQueue
public static QueueDeclarator dynamicQueue()
-
withMessageTtl
public QueueDeclarator withMessageTtl(long messageTtlInMs)
-
withDeadLetterExchange
public QueueDeclarator withDeadLetterExchange(String deadLetterExchange)
-
withDeadLetterRoutingKey
public QueueDeclarator withDeadLetterRoutingKey(String deadLetterRoutingKey)
-
withMaxLength
public QueueDeclarator withMaxLength(int maxLength)
-
withMaxLengthBytes
public QueueDeclarator withMaxLengthBytes(int maxLengthBytes)
-
withOverflow
public QueueDeclarator withOverflow(AmqArguments.Overflow overflow)
-
withMaxPriority
public QueueDeclarator withMaxPriority(int maxPriority)
-
declare
public com.rabbitmq.client.AMQP.Queue.DeclareOk declare(com.rabbitmq.client.Channel channel) throws IOException- Throws:
IOException
-
declare
public com.rabbitmq.client.AMQP.Queue.DeclareOk declare(MockChannel channel)
-
-