|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MessageStore
Field Summary | |
---|---|
static java.lang.String |
CLASSIFICATION
|
static java.lang.String |
CLASSIFICATION_DEFAULT
|
static java.lang.String |
CLASSIFICATION_DLQ
|
static java.lang.String |
CLASSIFICATION_RDLVR
|
static java.lang.String |
DEFAULT
|
static java.lang.String |
MESSAGE_URI
|
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. |
Message |
getMessage(java.net.URI uid,
java.lang.String classification)
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. |
int |
removeMessage(java.net.URI uid,
java.lang.String classification)
Removes a message from the store by URI. |
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 |
---|
static final java.lang.String DEFAULT
static final java.lang.String CLASSIFICATION
static final java.lang.String CLASSIFICATION_DEFAULT
static final java.lang.String CLASSIFICATION_DLQ
static final java.lang.String CLASSIFICATION_RDLVR
static final java.lang.String MESSAGE_URI
Method Detail |
---|
MessageURIGenerator getMessageURIGenerator()
java.net.URI addMessage(Message message, java.lang.String classification) throws MessageStoreException
message
- the message to store
MessageStoreException
Message getMessage(java.net.URI uid) throws MessageStoreException
uid
- the unique message id
MessageStoreException
void setUndelivered(java.net.URI uid) throws MessageStoreException
uid
-
MessageStoreException
void setDelivered(java.net.URI uid) throws MessageStoreException
uid
- the unique message id
MessageStoreException
java.util.Map<java.net.URI,Message> getUndeliveredMessages(java.lang.String classification) throws MessageStoreException
MessageStoreException
java.util.Map<java.net.URI,Message> getAllMessages(java.lang.String classification) throws MessageStoreException
classification
-
MessageStoreException
Message getMessage(java.net.URI uid, java.lang.String classification) throws MessageStoreException
uid
- the unique message idclassification
- the classification of the message
MessageStoreException
int removeMessage(java.net.URI uid, java.lang.String classification) throws MessageStoreException
uid
- the unique message idclassification
- the classification of the message
MessageStoreException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |