|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.codehaus.activemq.service.boundedvm.TransientQueueBoundedMessageManager
A manager of MessageContainer instances
| Nested Class Summary | |
protected static class |
TransientQueueBoundedMessageManager.TransientQueueThreadFactory
|
| Constructor Summary | |
TransientQueueBoundedMessageManager(MemoryBoundedQueueManager mgr,
RedeliveryPolicy redeliveryPolicy,
DeadLetterPolicy deadLetterPolicy)
Constructor for TransientQueueBoundedMessageManager |
|
| Method Summary | |
void |
acknowledgeMessage(BrokerClient client,
MessageAck ack)
Acknowledge a message as being read and consumed by the Consumer |
void |
acknowledgeTransactedMessage(BrokerClient client,
String transactionId,
MessageAck ack)
This is a hook to notify the dispatcher for the clients subscription that we have acknowledged a message within a transaction but before the commit - so the message is not really being acknowledged here but this method is intended to be a hook to let the dispatcher know that we can now send another message to the client. |
void |
addMessageConsumer(BrokerClient client,
ConsumerInfo info)
Add a consumer if appropiate |
void |
commitTransaction(BrokerClient client,
String transactionId)
A hook when the transaction is about to be commited; so apply all outstanding commands to the Journal if using a Journal (transaction log) |
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 |
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 |
redeliverMessage(BrokerClient client,
MessageAck ack)
Called after a rollback of a JMS transaction to redeliver the message to the consumers dispatch queue |
void |
removeMessageConsumer(BrokerClient client,
ConsumerInfo info)
|
void |
rollbackTransaction(BrokerClient client,
String transactionId)
A hook when the transaction is about to be rolled back; so discard all outstanding commands that are pending to be written to the Journal |
void |
run()
collect expired messages |
void |
sendMessage(BrokerClient client,
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 TransientQueueBoundedMessageManager(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 ServiceJMSException
public void stop()
throws JMSException
stop in interface ServiceJMSExceptionpublic void run()
run in interface Runnable
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 acknowledgeTransactedMessage(BrokerClient client,
String transactionId,
MessageAck ack)
throws JMSException
MessageContainerManager
acknowledgeTransactedMessage in interface MessageContainerManagerclient - transactionId - ack -
JMSException
public void redeliverMessage(BrokerClient client,
MessageAck ack)
throws JMSException
MessageContainerManager
redeliverMessage in interface MessageContainerManagerclient - ack -
JMSException
public void poll()
throws JMSException
MessageContainerManager
poll in interface MessageContainerManagerJMSException
public void commitTransaction(BrokerClient client,
String transactionId)
throws JMSException
commitTransaction in interface MessageContainerManagerclient - transactionId -
JMSException
public void rollbackTransaction(BrokerClient client,
String transactionId)
rollbackTransaction in interface MessageContainerManagerclient - transactionId -
public MessageContainer getContainer(String physicalName)
throws JMSException
MessageContainerManager
getContainer in interface MessageContainerManagerphysicalName -
JMSExceptionpublic Map getDestinations()
MessageContainerManagerDestination
objects available in this container
getDestinations in interface MessageContainerManagerpublic DeadLetterPolicy getDeadLetterPolicy()
getDeadLetterPolicy in interface MessageContainerManagerpublic void setDeadLetterPolicy(DeadLetterPolicy policy)
setDeadLetterPolicy in interface MessageContainerManagerpolicy -
protected Filter createFilter(ConsumerInfo info)
throws JMSException
info -
JMSExceptionprotected Executor getThreadPool()
public void createMessageContainer(ActiveMQDestination dest)
throws JMSException
MessageContainerManager
createMessageContainer in interface MessageContainerManagerdest -
JMSException
public void destroyMessageContainer(ActiveMQDestination dest)
throws JMSException
MessageContainerManager
destroyMessageContainer in interface MessageContainerManagerdest -
JMSException
public Map getMessageContainerAdmins()
throws JMSException
MessageContainerManagerMessageContainerAdmin
objects available in this container
getMessageContainerAdmins in interface MessageContainerManagerJMSException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||