Ignore:
Timestamp:
07/10/13 13:14:30 (11 years ago)
Author:
stoda
Message:

Default queues added, default exchange enabled, more control in remote queues added.
Tests verified and changed Persistent test to show how to make persistent messages.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/main/java/omq/common/util/ParameterQueue.java

    r83 r84  
    99public class ParameterQueue {
    1010
    11         /**
    12          * Set the proxy's serializer method
     11        /*
     12         * Connection info
    1313         */
    14         public static String PROXY_SERIALIZER = "omq.serializer";
    1514
    1615        /**
    17          * Set whether the messages must be compressed or not
     16         * Set the clients username
    1817         */
    19         public static String ENABLE_COMPRESSION = "omq.compression";
     18        public static String USER_NAME = "omq.username";
     19
     20        /**
     21         * Set the clients password
     22         */
     23        public static String USER_PASS = "omq.pass";
    2024
    2125        /**
     
    3034
    3135        /**
    32          * Set the clients username
     36         * Set if the system will use ssl
    3337         */
    34         public static String USER_NAME = "omq.username";
     38        public static String ENABLE_SSL = "omq.enable_ssl";
    3539
    3640        /**
    37          * Set the clients password
     41         * Set how many time we have to wait to retry the connection with the server
     42         * when this goes down
    3843         */
    39         public static String USER_PASS = "omq.pass";
     44        public static String RETRY_TIME_CONNECTION = "omq.retry_connection";
     45
     46        /*
     47         * Queues info
     48         */
    4049
    4150        /**
     
    5160
    5261        /**
    53          * Set if the queues must be durable. The queues won't be lost when rabbitmq
    54          * crashes if DURABLE_QUEUES is set trues.
    55          */
    56         public static String DURABLE_QUEUES = "omq.durable_queue";
    57 
    58         /**
    59          * The MESSAGE_TTL_IN_QUEUES controls for how long a message published to
    60          * the queues can live before it is discarded. A message that has been in
    61          * the queue for longer than the configured TTL is said to be dead.
    62          *
    63          * This property must be a non-negative 32 bit integer (0 <= n <= 2^32-1),
    64          * describing the TTL period in milliseconds.
    65          */
    66         public static String MESSAGE_TTL_IN_QUEUES = "omq.message_ttl_queue";
    67 
    68         /**
    69          * Set if the system will use ssl
    70          */
    71         public static String ENABLE_SSL = "omq.enable_ssl";
    72 
    73         /**
    74          * Set how many time we have to wait to retry the connection with the server
    75          * when this goes down
    76          */
    77         public static String RETRY_TIME_CONNECTION = "omq.retry_connection";
    78 
    79         /**
    80          * Set how many threads will be created to invoke remote methods
    81          */
    82         public static String NUM_THREADS = "omq.num_threads";
    83 
    84         /**
    8562         * Set the specific name of a multi queue in a specific object
    8663         */
    8764        public static String MULTI_QUEUE_NAME = "omq.multi_queue_name";
     65
     66        /**
     67         * Set if a queue must be durable. The queue won't be lost when RabbitMQ
     68         * crashes if DURABLE_QUEUE is set true.
     69         */
     70        public static String DURABLE_QUEUE = "omq.durable_queue";
    8871
    8972        /**
     
    9982
    10083        /**
     84         * Set if a queue must be durable. The queue won't be lost when RabbitMQ
     85         * crashes if DURABLE_QUEUE is set true.
     86         */
     87        public static String DURABLE_MQUEUE = "omq.durable_mqueue";
     88
     89        /**
     90         * Set if server will delete a queue when is no longer in use
     91         */
     92        public static String AUTO_DELETE_MQUEUE = "omq.auto_mdelete";
     93
     94        /**
     95         * Set if we are declaring an exclusive queue (restricted to this
     96         * connection)
     97         */
     98        public static String EXCLUSIVE_MQUEUE = "omq.exclusive_mqueue";
     99
     100        /**
     101         * The MESSAGE_TTL_IN_QUEUES controls for how long a message published to
     102         * the queues can live before it is discarded. A message that has been in
     103         * the queue for longer than the configured TTL is said to be dead.
     104         *
     105         * This property must be a non-negative 32 bit integer (0 <= n <= 2^32-1),
     106         * describing the TTL period in milliseconds.
     107         */
     108        public static String MESSAGE_TTL_IN_QUEUES = "omq.message_ttl_queue";
     109
     110        /*
     111         * Message info
     112         */
     113
     114        /**
     115         * Set the proxy's serializer method
     116         */
     117        public static String PROXY_SERIALIZER = "omq.serializer";
     118
     119        /**
     120         * Set whether the messages must be compressed or not
     121         */
     122        public static String ENABLE_COMPRESSION = "omq.compression";
     123
     124        /**
    101125         * Set 1 to indicate the message will be nonpersistent and 2 to indicate it
    102126         * will be persistent
    103127         */
    104128        public static String DELIVERY_MODE = "omq.delivery_mode";
     129
     130        /*
     131         * ObjectMQ info
     132         */
     133
     134        /**
     135         * Set how many threads will be created to invoke remote methods
     136         */
     137        public static String NUM_THREADS = "omq.num_threads";
    105138
    106139        /**
Note: See TracChangeset for help on using the changeset viewer.