org.activemq.store.cache
Interface MessageCache

All Known Implementing Classes:
MemoryBoundedMessageCache, SimpleMessageCache

public interface MessageCache

Defines the interface used to cache messages.

Version:
$Revision: 1.1.1.1 $

Method Summary
 void close()
          Lets a cache know it will not be used any further and that it can release aquired resources
 ActiveMQMessage get(String msgid)
          Gets a message that was previously put into this object.
 void put(String messageID, ActiveMQMessage message)
          Puts a message into the cache.
 void remove(String messageID)
          Remvoes a message from the cache.
 

Method Detail

get

ActiveMQMessage get(String msgid)
Gets a message that was previously put into this object.

Parameters:
msgid -
Returns:
null if the message was not previously put or if the message has expired out of the cache.

put

void put(String messageID,
         ActiveMQMessage message)
Puts a message into the cache.

Parameters:
messageID -
message -

remove

void remove(String messageID)
Remvoes a message from the cache.

Parameters:
messageID -

close

void close()
Lets a cache know it will not be used any further and that it can release aquired resources



Copyright © 2004-2009 Protique, Ltd.. All Rights Reserved.