From 2a83a3e9d5943418c5c50fabc628bf936b5c7722 Mon Sep 17 00:00:00 2001
From: Rajith Muditha Attapattu see available options: {@link CreateReceiverOption}
- * When non of the options are set then the receiver is created with:
+ * Following are the valid options for createReceive
*
- *
- *
+ *
In the absence of a particular option, the defaul value is: + *
This operation is irreversible. * - * @throws QpidException If the session fail to be transacted due to some error. + * @throws QpidException If the session fails to be transacted due to some error. * @throws IllegalStateException If this session is already transacted. */ - public void setTransacted() throws QpidException, IllegalStateException; + public void setTransacted() + throws + QpidException, + IllegalStateException; /** - * Declare a queue of name queueName - *
see available options: {@link DeclareQueueOption} - *
When non of the options are set then the receiver is created with: + * ------------------------------------- + * Queue methods + * ------------------------------------- + */ + + /** + * Declare a queue with the given queueName + *
Following are the valid options for declareQueue *
In the absence of a particular option, the defaul value is false for each option + * * @param queueName The name of the delcared queue. * @param options Set of Options. * @throws QpidException If the session fails to declare the queue due to some error. - * @see DeclareQueueOption + * @see Option */ - public void declareQueue(String queueName, DeclareQueueOption... options) throws QpidException; + public void queueDeclare(String queueName, Option... options) + throws + QpidException; //Todo: Do we need to define more specific exceptions like queue name already exist? /** @@ -144,9 +197,12 @@ public interface Session * @param queueName The queue to be bound. * @param exchangeName The exchange name. * @param routingKey The routing key. + * @param nowait nowait * @throws QpidException If the session fails to bind the queue due to some error. */ - public void bindQueue(String queueName, String exchangeName, String routingKey) throws QpidException; + public void queueBind(String queueName, String exchangeName, String routingKey) + throws + QpidException; //Todo: Do we need to define more specific exceptions like exchange does not exist? /** @@ -157,7 +213,9 @@ public interface Session * @param routingKey The routing key. * @throws QpidException If the session fails to unbind the queue due to some error. */ - public void unbindQueue(String queueName, String exchangeName, String routingKey) throws QpidException; + public void queueUnbind(String queueName, String exchangeName, String routingKey) + throws + QpidException; //Todo: Do we need to define more specific exceptions like exchange does not exist? /** @@ -165,57 +223,80 @@ public interface Session * TODO: Define the exact semantic i.e. are message sent to a dead letter queue? * * @param queueName The queue to be purged + * @param nowait nowait * @throws QpidException If the session fails to purge the queue due to some error. */ - public void purgeQueue(String queueName) throws QpidException; + public void queuePurge(String queueName) + throws + QpidException; /** * Delet a queue. - *
see available options: {@link DeleteQueueOption} - *
When non of the options are set then The queue is immediately deleted even - * if it still contains messages or if ti is used by another resource. + *
Following are the valid options for createReceive + *
In the absence of a particular option, the defaul value is false for each option
* * @param queueName The name of the queue to be deleted * @param options Set of options * @throws QpidException If the session fails to delete the queue due to some error. - * @see DeleteQueueOption + * @see Option + * + * Following are the valid options */ - public void deleteQueue(String queueName, DeleteQueueOption options) throws QpidException; + public void queueDelete(String queueName, Option options) + throws + QpidException; /** * Declare an exchange. - *see available options: {@link DeclareExchangeOption} - *
When non of the options are set then the exchange is declared with: + *
Following are the valid options for createReceive *
In the absence of a particular option, the defaul value is false for each option
* * - * @param exchangeName The exchange name. - * @param exchangeClass The fully qualified name of the exchange class. - * @param alternateExchange The alternate exchange. - * @param options Set of options. - * @throws QpidException If the session fails to declare the exchange due to some error. - * @see DeclareExchangeOption + * @param exchangeName The exchange name. + * @param exchangeClass The fully qualified name of the exchange class. + * @param options Set of options. + * @throws QpidException If the session fails to declare the exchange due to some error. + * @see Option */ - public void declareExchange(String exchangeName, String exchangeClass, String alternateExchange, - DeclareExchangeOption... options) throws QpidException; + public void exchangeDeclare(String exchangeName, String exchangeClass, String alternateExchange, Option... options) + throws + QpidException; //Todo: Do we need to define more specific exceptions like exchange already exist? /** * Delete an exchange. - *see available options: {@link DeclareExchangeOption} - *
When non of the options are set then the exchange - * Immediately deleted even if it is used by another resources. + *
Following are the valid options for createReceive + *
In the absence of a particular option, the defaul value is false for each option + * Immediately deleted even if it is used by another resources.
* * @param exchangeName The name of exchange to be deleted. * @param options Set of options. * @throws QpidException If the session fails to delete the exchange due to some error. - * @see DeleteExchangeOption + * @see Option */ - public void deleteExchange(String exchangeName, DeleteExchangeOption... options) throws QpidException; - //Todo: Do we need to define more specific exceptions like exchange does not exist? + public void exchangeDelete(String exchangeName, Option... options) + throws + QpidException; + //Todo: Do we need to define more specific exceptions like exchange does not exist? } -- cgit v1.2.1