public class QueueConnector
extends java.lang.Object
| Constructor and Description |
|---|
QueueConnector(org.apache.activemq.artemis.core.config.CoreQueueConfiguration config,
org.apache.activemq.artemis.api.core.client.ClientSession session)
Creates a new instance to access the specified queue.
|
| Modifier and Type | Method and Description |
|---|---|
org.apache.activemq.artemis.core.config.CoreQueueConfiguration |
getConfig() |
org.apache.activemq.artemis.api.core.client.ClientSession |
getSession() |
org.apache.activemq.artemis.api.core.client.ClientConsumer |
newBrowser()
Creates a new consumer to receive messages from the queue without
removing them.
|
org.apache.activemq.artemis.api.core.client.ClientConsumer |
newConsumer()
Creates a new consumer to fetch messages from the queue.
|
org.apache.activemq.artemis.api.core.client.ClientMessage |
newDurableMessage()
Creates a new durable message.
|
org.apache.activemq.artemis.api.core.client.ClientProducer |
newProducer()
Creates a new producer to put messages on the queue.
|
public QueueConnector(org.apache.activemq.artemis.core.config.CoreQueueConfiguration config,
org.apache.activemq.artemis.api.core.client.ClientSession session)
config - the queue to access.session - the session to use to access the queue.java.lang.NullPointerException - if any argument is null.public org.apache.activemq.artemis.api.core.client.ClientConsumer newConsumer()
throws org.apache.activemq.artemis.api.core.ActiveMQException
org.apache.activemq.artemis.api.core.ActiveMQException - if the consumer could not be created.public org.apache.activemq.artemis.api.core.client.ClientConsumer newBrowser()
throws org.apache.activemq.artemis.api.core.ActiveMQException
org.apache.activemq.artemis.api.core.ActiveMQException - if the consumer could not be created.public org.apache.activemq.artemis.api.core.client.ClientProducer newProducer()
throws org.apache.activemq.artemis.api.core.ActiveMQException
org.apache.activemq.artemis.api.core.ActiveMQException - if the producer could not be created.public org.apache.activemq.artemis.api.core.client.ClientMessage newDurableMessage()
public org.apache.activemq.artemis.api.core.client.ClientSession getSession()
public org.apache.activemq.artemis.core.config.CoreQueueConfiguration getConfig()