MessageCache (ActiveMQ 1.1 API)
Keywords: org.codehaus.activemq.store.cache.MessageCache interface

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

## org.codehaus.activemq.store.cache
Interface MessageCache

All Known Implementing Classes:
  SimpleMessageCache

public interface MessageCache

Defines the interface used to cache messages.

Version:
  $Revision: 1.1 $

Method Summary
`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

    public 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

    public void put(String messageID,
                    ActiveMQMessage message)

  Puts a message into the cache.

  Parameters:
    `messageID` -
    `message` -

### remove

    public void remove(String messageID)

  Remvoes a message from the cache.

  Parameters:
    `messageID` -

Overview | Package | Class | Use | Tree | Deprecated | Index | Help
PREV CLASS NEXT CLASS | FRAMES NO FRAMES
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD

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