|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.activemq.service.boundedvm.DurableQueueBoundedMessageManager
A MessageContainerManager for Durable queues
Nested Class Summary | |
protected static class |
DurableQueueBoundedMessageManager.DurableQueueThreadFactory
|
Constructor Summary | |
DurableQueueBoundedMessageManager(PersistenceAdapter persistenceAdapter,
MemoryBoundedQueueManager mgr,
RedeliveryPolicy redeliveryPolicy,
DeadLetterPolicy deadLetterPolicy)
Constructor for DurableQueueBoundedMessageManager |
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)
Allows the lookup of a specific named message container |
DeadLetterPolicy |
getDeadLetterPolicy()
|
Map |
getDestinations()
Returns an unmodifiable map, indexed by String name, of all the Destination
objects available in this container |
int |
getGarbageCoolectionCapacityLimit()
|
long |
getInactiveTimeout()
|
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 Executor |
getThreadPool()
|
void |
poll()
Poll for messages |
void |
removeMessageConsumer(BrokerClient client,
ConsumerInfo info)
|
void |
run()
collect expired messages |
void |
sendMessage(BrokerClient client,
ActiveMQMessage message)
|
void |
sendToDeadLetterQueue(String deadLetterName,
ActiveMQMessage message)
|
void |
setDeadLetterPolicy(DeadLetterPolicy policy)
Set the DeadLetterPolicy for this Container Manager |
void |
setGarbageCoolectionCapacityLimit(int garbageCoolectionCapacityLimit)
|
void |
setInactiveTimeout(long inactiveTimeout)
|
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 DurableQueueBoundedMessageManager(PersistenceAdapter persistenceAdapter, MemoryBoundedQueueManager mgr, RedeliveryPolicy redeliveryPolicy, DeadLetterPolicy deadLetterPolicy)
mgr
- redeliveryPolicy
- deadLetterPolicy
- Method Detail |
public int getGarbageCoolectionCapacityLimit()
public void setGarbageCoolectionCapacityLimit(int garbageCoolectionCapacityLimit)
garbageCoolectionCapacityLimit
- The garbageCoolectionCapacityLimit to set.public long getInactiveTimeout()
public void setInactiveTimeout(long inactiveTimeout)
inactiveTimeout
- The inactiveTimeout to set.public void start() throws JMSException
start
in interface Service
JMSException
public void stop() throws JMSException
stop
in interface Service
JMSException
public void run()
run
in interface Runnable
public void addMessageConsumer(BrokerClient client, ConsumerInfo info) throws JMSException
addMessageConsumer
in interface MessageContainerManager
client
- info
-
JMSException
public void removeMessageConsumer(BrokerClient client, ConsumerInfo info) throws JMSException
removeMessageConsumer
in interface MessageContainerManager
client
- info
-
JMSException
public void deleteSubscription(String clientId, String subscriberName) throws JMSException
deleteSubscription
in interface MessageContainerManager
clientId
- subscriberName
-
JMSException
- if the subscriber doesn't exist or is still activepublic void sendMessage(BrokerClient client, ActiveMQMessage message) throws JMSException
sendMessage
in interface MessageContainerManager
client
- message
-
JMSException
public void acknowledgeMessage(BrokerClient client, MessageAck ack) throws JMSException
MessageContainerManager
acknowledgeMessage
in interface MessageContainerManager
client
- ack
-
JMSException
public void poll() throws JMSException
MessageContainerManager
poll
in interface MessageContainerManager
JMSException
public MessageContainer getContainer(String physicalName) throws JMSException
MessageContainerManager
getContainer
in interface MessageContainerManager
physicalName
-
JMSException
public Map getDestinations()
MessageContainerManager
Destination
objects available in this container
getDestinations
in interface MessageContainerManager
public Map getLocalDestinations()
Destination
objects used by non-broker consumers directly connected to this container
getLocalDestinations
in interface MessageContainerManager
public DeadLetterPolicy getDeadLetterPolicy()
getDeadLetterPolicy
in interface MessageContainerManager
public void setDeadLetterPolicy(DeadLetterPolicy policy)
setDeadLetterPolicy
in interface MessageContainerManager
policy
- protected Filter createFilter(ConsumerInfo info) throws JMSException
info
-
JMSException
protected Executor getThreadPool()
public void createMessageContainer(ActiveMQDestination dest) throws JMSException
MessageContainerManager
createMessageContainer
in interface MessageContainerManager
dest
-
JMSException
public Map getMessageContainerAdmins() throws JMSException
MessageContainerManager
MessageContainerAdmin
objects available in this container
getMessageContainerAdmins
in interface MessageContainerManager
JMSException
public void destroyMessageContainer(ActiveMQDestination dest) throws JMSException
MessageContainerManager
destroyMessageContainer
in interface MessageContainerManager
dest
-
JMSException
public void sendToDeadLetterQueue(String deadLetterName, ActiveMQMessage message) throws JMSException
JMSException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |