public class QueueReceiverClient extends Object
Constructor and Description |
---|
QueueReceiverClient() |
Modifier and Type | Method and Description |
---|---|
boolean |
closeReceiver()
Close the message receiver
|
int |
purgeQueue(javax.jms.Queue queue)
Method to purge a queue as user request through the client.
|
javax.jms.Queue |
registerReceiver(String nameOfQueue,
String username,
String accesskey)
Method used to register a subscriber to a queue.
|
public static final String QPID_ICF
public javax.jms.Queue registerReceiver(String nameOfQueue, String username, String accesskey) throws NamingException, javax.jms.JMSException, FileNotFoundException, XMLStreamException, org.wso2.andes.kernel.AndesException
nameOfQueue
- name of queueusername
- User's username as per user storeaccesskey
- as generated by andes authentication service for the user.NamingException
javax.jms.JMSException
FileNotFoundException
XMLStreamException
org.wso2.andes.kernel.AndesException
public int purgeQueue(javax.jms.Queue queue) throws javax.jms.JMSException
queue
- javax.jms.Queue object of Queue that needs to be purged.javax.jms.JMSException
public boolean closeReceiver() throws javax.jms.JMSException
javax.jms.JMSException
Copyright © 2019 WSO2. All rights reserved.