|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.codehaus.activemq.service.impl.ProxyMessageContainerManager
A Proxy implementation of MessageContainerManager which
delegates to some other implementation which is useful for writing
Facade implementations
| Constructor Summary | |
ProxyMessageContainerManager()
|
|
ProxyMessageContainerManager(MessageContainerManager delegate)
|
|
| 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)
|
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) |
void |
deleteSubscription(String clientId,
String subscriberName)
Delete a durable subscriber |
MessageContainer |
getContainer(String physicalName)
Allows the lookup of a specific named message container |
protected MessageContainerManager |
getDelegate()
|
Map |
getDestinations()
Returns an unmodifiable map, indexed by String name, of all the Destination
objects available in this container |
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 |
sendMessage(BrokerClient client,
ActiveMQMessage message)
|
protected void |
setDelegate(MessageContainerManager delegate)
|
void |
start()
Called to start the service |
void |
stop()
Called to shutdown the service |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public ProxyMessageContainerManager()
public ProxyMessageContainerManager(MessageContainerManager delegate)
| Method Detail |
public Map getDestinations()
MessageContainerManagerDestination
objects available in this container
getDestinations in interface MessageContainerManager
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 MessageContainerManagerJMSException
public void redeliverMessage(BrokerClient client,
MessageAck ack)
throws JMSException
MessageContainerManager
redeliverMessage in interface MessageContainerManagerclient - ack -
JMSException
public void addMessageConsumer(BrokerClient client,
ConsumerInfo info)
throws JMSException
addMessageConsumer in interface MessageContainerManagerclient - info -
JMSException
public void commitTransaction(BrokerClient client,
String transactionId)
throws JMSException
MessageContainerManager
commitTransaction in interface MessageContainerManagerclient - transactionId -
JMSException
public void deleteSubscription(String clientId,
String subscriberName)
throws JMSException
MessageContainerManager
deleteSubscription in interface MessageContainerManagerclientId - subscriberName -
JMSException - if the subscriber doesn't exist or is still active
public void poll()
throws JMSException
MessageContainerManager
poll in interface MessageContainerManagerJMSException
public void removeMessageConsumer(BrokerClient client,
ConsumerInfo info)
throws JMSException
removeMessageConsumer in interface MessageContainerManagerclient - info -
JMSException
public void rollbackTransaction(BrokerClient client,
String transactionId)
MessageContainerManager
rollbackTransaction in interface MessageContainerManagerclient - transactionId -
public void sendMessage(BrokerClient client,
ActiveMQMessage message)
throws JMSException
sendMessage in interface MessageContainerManagerclient - message -
JMSException
public MessageContainer getContainer(String physicalName)
throws JMSException
MessageContainerManager
getContainer in interface MessageContainerManagerphysicalName -
JMSException
public void start()
throws JMSException
Service
start in interface ServiceJMSException
public void stop()
throws JMSException
Service
stop in interface ServiceJMSExceptionprotected MessageContainerManager getDelegate()
protected void setDelegate(MessageContainerManager delegate)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||