|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.codehaus.activemq.service.boundedvm.TransientTopicBoundedMessageContainer
A MessageContainer for transient topics One of these exists for every active Connection consuming transient Topic messages
| Constructor Summary | |
TransientTopicBoundedMessageContainer(BrokerClient client,
BoundedPacketQueue queue)
Construct this beast |
|
| Method Summary | |
void |
addConsumer(Filter filter,
ConsumerInfo info)
Add a consumer to dispatch messages to |
MessageIdentity |
addMessage(ActiveMQMessage msg)
Add an ActiveMQMessage to the message container |
void |
close()
close down this container |
boolean |
containsMessage(MessageIdentity messageIdentity)
Returns whether or not this container contains the given message identity which provides an optimisation over getMessage() where the message does not need to be loaded. |
void |
delete(MessageIdentity messageIdentity,
MessageAck ack)
Delete a message - if no |
BrokerClient |
getBrokerClient()
|
String |
getDestinationName()
|
ActiveMQMessage |
getMessage(MessageIdentity messageIdentity)
Return the ActiveMQMessage that matches the Id |
boolean |
hasConsumerFor(ActiveMQDestination destination)
|
boolean |
isInactive()
|
void |
registerMessageInterest(MessageIdentity messageIdentity)
Register that a consumer will be interested in this message |
void |
removeConsumer(ConsumerInfo info)
Remove a consumer |
void |
run()
do some dispatching |
void |
start()
start working |
void |
stop()
stop working |
boolean |
targetAndDispatch(BrokerClient sender,
ActiveMQMessage message)
See if this container should get this message and dispatch it |
void |
unregisterMessageInterest(MessageIdentity messageIdentity,
MessageAck ack)
A message consumer calls this when it's no longer interested in a message so that we know when we can delete (or archive) it |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public TransientTopicBoundedMessageContainer(BrokerClient client,
BoundedPacketQueue queue)
client - queue - | Method Detail |
public boolean isInactive()
public BrokerClient getBrokerClient()
public void addConsumer(Filter filter,
ConsumerInfo info)
filter - info - public void removeConsumer(ConsumerInfo info)
info - public void start()
start in interface Service
public boolean targetAndDispatch(BrokerClient sender,
ActiveMQMessage message)
throws JMSException
sender - the BrokerClient the message came frommessage -
JMSExceptionpublic void stop()
stop in interface Servicepublic void close()
public void run()
run in interface Runnablepublic boolean hasConsumerFor(ActiveMQDestination destination)
destination -
public String getDestinationName()
getDestinationName in interface MessageContainer
public MessageIdentity addMessage(ActiveMQMessage msg)
throws JMSException
MessageContainer
addMessage in interface MessageContainermsg -
JMSException
public void delete(MessageIdentity messageIdentity,
MessageAck ack)
throws JMSException
MessageContainer
delete in interface MessageContainermessageIdentity - ack -
JMSException
public ActiveMQMessage getMessage(MessageIdentity messageIdentity)
throws JMSException
MessageContainer
getMessage in interface MessageContainermessageIdentity -
JMSException
public void registerMessageInterest(MessageIdentity messageIdentity)
throws JMSException
MessageContainer
registerMessageInterest in interface MessageContainermessageIdentity -
JMSException
public void unregisterMessageInterest(MessageIdentity messageIdentity,
MessageAck ack)
throws JMSException
MessageContainer
unregisterMessageInterest in interface MessageContainermessageIdentity - ack -
JMSException
public boolean containsMessage(MessageIdentity messageIdentity)
throws JMSException
MessageContainer
containsMessage in interface MessageContainermessageIdentity -
JMSException
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||