org.jboss.soa.esb.services.persistence
Interface MessageStore


public interface MessageStore


Field Summary
static java.lang.String DEFAULT_CLASSIFICATION
           
static java.lang.String DLQ_CLASSIFICATION
           
 
Method Summary
 java.net.URI addMessage(Message message, java.lang.String classification)
          Add a message to the store.
 java.util.Map<java.net.URI,Message> getAllMessages(java.lang.String classification)
          Get a map of all messages for a certain classification.
 Message getMessage(java.net.URI uid)
          Get a message from the store by URI.
 MessageURIGenerator getMessageURIGenerator()
          Get the implementation-specific message URI generator.
 java.util.Map<java.net.URI,Message> getUndeliveredMessages(java.lang.String classification)
          Get a map of undelivered messages.
 void setDelivered(java.net.URI uid)
          Indicate that a message has been delivered.
 void setUndelivered(java.net.URI uid)
          Indicate that a message has not been delivered.
 

Field Detail

DEFAULT_CLASSIFICATION

static final java.lang.String DEFAULT_CLASSIFICATION
See Also:
Constant Field Values

DLQ_CLASSIFICATION

static final java.lang.String DLQ_CLASSIFICATION
See Also:
Constant Field Values
Method Detail

getMessageURIGenerator

MessageURIGenerator getMessageURIGenerator()
Get the implementation-specific message URI generator.

Returns:
the generator

addMessage

java.net.URI addMessage(Message message,
                        java.lang.String classification)
                        throws MessageStoreException
Add a message to the store.

Parameters:
message - the message to store
Returns:
the URI of the generated message
Throws:
MessageStoreException

getMessage

Message getMessage(java.net.URI uid)
                   throws MessageStoreException
Get a message from the store by URI.

Parameters:
uid - the unique message id
Returns:
the message
Throws:
MessageStoreException

setUndelivered

void setUndelivered(java.net.URI uid)
                    throws MessageStoreException
Indicate that a message has not been delivered.

Parameters:
uid -
Throws:
MessageStoreException

setDelivered

void setDelivered(java.net.URI uid)
                  throws MessageStoreException
Indicate that a message has been delivered.

Parameters:
uid -
Throws:
MessageStoreException

getUndeliveredMessages

java.util.Map<java.net.URI,Message> getUndeliveredMessages(java.lang.String classification)
                                                           throws MessageStoreException
Get a map of undelivered messages.

Returns:
Throws:
MessageStoreException

getAllMessages

java.util.Map<java.net.URI,Message> getAllMessages(java.lang.String classification)
                                                   throws MessageStoreException
Get a map of all messages for a certain classification.

Parameters:
classification -
Returns:
map
Throws:
MessageStoreException