org.jboss.messaging.core.plugin.contract
Interface MessageStore

All Superinterfaces:
MessagingComponent
All Known Implementing Classes:
SimpleMessageStore

public interface MessageStore
extends MessagingComponent

An interface to a referencing/dereferencing message store.

Version:
$Revision: 2202 $ $Id: MessageStore.java 2202 2007-02-08 10:50:26Z timfox $
Author:
Ovidiu Feodorov, Tim Fox

Method Summary
 boolean forgetMessage(long messageID)
          Remove a message from the store
 MessageReference reference(long messageID)
          Return a new reference for a message already stored in the store and identified by
 MessageReference reference(Message m)
          Message m is stored in the store if it is not already known to the store, then a new MessageReference is returned for the Message
 
Methods inherited from interface org.jboss.messaging.core.plugin.contract.MessagingComponent
start, stop
 

Method Detail

reference

public MessageReference reference(Message m)
Message m is stored in the store if it is not already known to the store, then a new MessageReference is returned for the Message

Parameters:
m - The Message for which to create the MessageReference
Returns:
The new MessageReference

reference

public MessageReference reference(long messageID)
Return a new reference for a message already stored in the store and identified by

Parameters:
messageID -
Returns:
The reference or null if the message is not already stored in the store

forgetMessage

public boolean forgetMessage(long messageID)
Remove a message from the store

Parameters:
messageID -
Returns:


Copyright © 2006 JBoss Inc. All Rights Reserved.