Spring AMQP

org.springframework.amqp.core
Class Queue

java.lang.Object
  extended by org.springframework.amqp.core.Queue
Direct Known Subclasses:
AnonymousQueue, UniquelyNamedQueue

public class Queue
extends Object

Simple container collecting information to describe a queue. Used in conjunction with AmqpAdmin.

Author:
Mark Pollack
See Also:
AmqpAdmin

Constructor Summary
Queue(String name)
          The queue is durable, non-exclusive and non auto-delete.
Queue(String name, boolean durable)
          Construct a new queue, given a name and durability flag.
Queue(String name, boolean durable, boolean exclusive, boolean autoDelete)
          Construct a new queue, given a name, durability, exclusive and auto-delete flags.
Queue(String name, boolean durable, boolean exclusive, boolean autoDelete, Map<String,Object> arguments)
          Construct a new queue, given a name, durability flag, and auto-delete flag, and arguments.
 
Method Summary
 Map<String,Object> getArguments()
           
 String getName()
           
 boolean isAutoDelete()
          True if the server should delete the queue when it is no longer in use (the last consumer is cancelled).
 boolean isDurable()
          A durable queue will survive a server restart
 boolean isExclusive()
          True if the server should only send messages to the declarer's connection.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Queue

public Queue(String name)
The queue is durable, non-exclusive and non auto-delete.

Parameters:
name - the name of the queue.

Queue

public Queue(String name,
             boolean durable)
Construct a new queue, given a name and durability flag. The queue is non-exclusive and non auto-delete.

Parameters:
name - the name of the queue.
durable - true if we are declaring a durable queue (the queue will survive a server restart)

Queue

public Queue(String name,
             boolean durable,
             boolean exclusive,
             boolean autoDelete)
Construct a new queue, given a name, durability, exclusive and auto-delete flags.

Parameters:
name - the name of the queue.
durable - true if we are declaring a durable queue (the queue will survive a server restart)
exclusive - true if we are declaring an exclusive queue (the queue will only be used by the declarer's connection)
autoDelete - true if the server should delete the queue when it is no longer in use

Queue

public Queue(String name,
             boolean durable,
             boolean exclusive,
             boolean autoDelete,
             Map<String,Object> arguments)
Construct a new queue, given a name, durability flag, and auto-delete flag, and arguments.

Parameters:
name - the name of the queue.
durable - true if we are declaring a durable queue (the queue will survive a server restart)
exclusive - true if we are declaring an exclusive queue (the queue will only be used by the declarer's connection)
autoDelete - true if the server should delete the queue when it is no longer in use
arguments - the arguments used to declare the queue
Method Detail

getName

public String getName()

isDurable

public boolean isDurable()
A durable queue will survive a server restart

Returns:
true if durable

isExclusive

public boolean isExclusive()
True if the server should only send messages to the declarer's connection.

Returns:
true if auto-delete

isAutoDelete

public boolean isAutoDelete()
True if the server should delete the queue when it is no longer in use (the last consumer is cancelled). A queue that never has any consumers will not be deleted automatically.

Returns:
true if auto-delete

getArguments

public Map<String,Object> getArguments()

toString

public String toString()
Overrides:
toString in class Object

Spring AMQP

Copyright © 2011. All Rights Reserved.