|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.activemq.service.boundedvm.TransientTopicBoundedMessageManager
public class TransientTopicBoundedMessageManager
A manager of MessageContainer instances
| Constructor Summary | |
|---|---|
TransientTopicBoundedMessageManager(MemoryBoundedQueueManager mgr)
Constructor for TransientTopicBoundedMessageManager |
|
| Method Summary | |
|---|---|
void |
acknowledgeMessage(BrokerClient client,
MessageAck ack)
Acknowledge a message as being read and consumed by the Consumer |
void |
addMessageConsumer(BrokerClient client,
ConsumerInfo info)
Add a consumer if appropiate |
protected Filter |
createFilter(ConsumerInfo info)
Create filter for a Consumer |
void |
createMessageContainer(ActiveMQDestination dest)
Creates a destination. |
void |
deleteSubscription(String clientId,
String subscriberName)
Delete a durable subscriber |
void |
destroyMessageContainer(ActiveMQDestination dest)
Destroys a destination. |
MessageContainer |
getContainer(String physicalName)
For Transient topics - a MessageContainer maps on to the messages to be dispatched through a BrokerClient, not a destination |
DeadLetterPolicy |
getDeadLetterPolicy()
|
Map |
getDestinations()
Returns an unmodifiable map, indexed by String name, of all the Destination
objects available in this container |
Map |
getLocalDestinations()
Returns an unmodifiable map, indexed by String name, of all the Destination
objects used by non-broker consumers directly connected to this container |
Map |
getMessageContainerAdmins()
Returns an unmodifiable map, indexed by ActiveMQDestination, of all the MessageContainerAdmin
objects available in this container |
protected boolean |
hasConsumerFor(ActiveMQDestination destination)
|
boolean |
isDecoupledDispatch()
|
void |
poll()
Poll for messages |
void |
removeMessageConsumer(BrokerClient client,
ConsumerInfo info)
|
void |
sendMessage(BrokerClient client,
ActiveMQMessage message)
|
void |
setDeadLetterPolicy(DeadLetterPolicy policy)
Set the DeadLetterPolicy for this Container Manager |
void |
setDecoupledDispatch(boolean decoupledDispatch)
|
void |
start()
start the manager |
void |
stop()
stop the manager |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public TransientTopicBoundedMessageManager(MemoryBoundedQueueManager mgr)
mgr - | Method Detail |
|---|
public void start()
throws JMSException
start in interface ServiceJMSException
public void stop()
throws JMSException
stop in interface ServiceJMSException
public void addMessageConsumer(BrokerClient client,
ConsumerInfo info)
throws JMSException
addMessageConsumer in interface MessageContainerManagerclient - info -
JMSException
public void removeMessageConsumer(BrokerClient client,
ConsumerInfo info)
throws JMSException
removeMessageConsumer in interface MessageContainerManagerclient - info -
JMSException
public void deleteSubscription(String clientId,
String subscriberName)
throws JMSException
deleteSubscription in interface MessageContainerManagerclientId - subscriberName -
JMSException - if the subscriber doesn't exist or is still active
public void sendMessage(BrokerClient client,
ActiveMQMessage message)
throws JMSException
sendMessage in interface MessageContainerManagerclient - message -
JMSException
public void acknowledgeMessage(BrokerClient client,
MessageAck ack)
throws JMSException
MessageContainerManager
acknowledgeMessage in interface MessageContainerManagerclient - ack -
JMSException
public void poll()
throws JMSException
MessageContainerManager
poll in interface MessageContainerManagerJMSException
public MessageContainer getContainer(String physicalName)
throws JMSException
getContainer in interface MessageContainerManagerphysicalName -
JMSExceptionpublic Map getDestinations()
MessageContainerManagerDestination
objects available in this container
getDestinations in interface MessageContainerManagerpublic Map getLocalDestinations()
Destination
objects used by non-broker consumers directly connected to this container
getLocalDestinations in interface MessageContainerManagerpublic DeadLetterPolicy getDeadLetterPolicy()
getDeadLetterPolicy in interface MessageContainerManagerpublic void setDeadLetterPolicy(DeadLetterPolicy policy)
setDeadLetterPolicy in interface MessageContainerManagerpolicy - public boolean isDecoupledDispatch()
public void setDecoupledDispatch(boolean decoupledDispatch)
decoupledDispatch - The decoupledDispatch to set.
protected Filter createFilter(ConsumerInfo info)
throws JMSException
info -
JMSExceptionprotected boolean hasConsumerFor(ActiveMQDestination destination)
public void createMessageContainer(ActiveMQDestination dest)
throws JMSException
MessageContainerManager
createMessageContainer in interface MessageContainerManagerJMSExceptionMessageContainerManager.createMessageContainer(org.activemq.message.ActiveMQDestination)
public void destroyMessageContainer(ActiveMQDestination dest)
throws JMSException
MessageContainerManager
destroyMessageContainer in interface MessageContainerManagerJMSExceptionMessageContainerManager.destroyMessageContainer(org.activemq.message.ActiveMQDestination)
public Map getMessageContainerAdmins()
throws JMSException
MessageContainerManagerMessageContainerAdmin
objects available in this container
getMessageContainerAdmins in interface MessageContainerManagerJMSExceptionMessageContainerManager.getMessageContainerAdmins()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||