|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.ObjectServiceMBeanSupport
org.jboss.messaging.core.plugin.SimpleMessageStore
A MessageStore implementation.
| Constructor Summary | |
SimpleMessageStore(java.lang.String storeID)
|
|
SimpleMessageStore(java.lang.String storeID,
boolean acceptReliableMessages)
|
|
| Method Summary | |
boolean |
acceptReliableMessages()
A non-recoverable message store cannot guarantee recoverability for reliable messages so by default it won't accept reliable messages. |
protected org.jboss.messaging.core.plugin.MessageHolder |
addMessage(Message m)
|
boolean |
forgetMessage(long messageID)
Remove a message from the store |
java.lang.Object |
getInstance()
A server plugin will be always accessed via a hard reference, so it is essential that each implementation exposes this method. |
java.io.Serializable |
getStoreID()
|
boolean |
isRecoverable()
|
java.util.List |
messageIds()
|
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 |
void |
setStoreID(java.lang.String storeID)
|
int |
size()
|
protected void |
startService()
|
protected void |
stopService()
|
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public SimpleMessageStore(java.lang.String storeID)
storeID - - if more than one message store is to be used in a distributed messaging
configuration, each store must have an unique store ID.
public SimpleMessageStore(java.lang.String storeID,
boolean acceptReliableMessages)
storeID - - if more than one message store is to be used in a distributed messaging
configuration, each store must have an unique store ID.| Method Detail |
protected void startService()
throws java.lang.Exception
java.lang.Exception
protected void stopService()
throws java.lang.Exception
java.lang.Exceptionpublic java.lang.Object getInstance()
ServerPlugin
getInstance in interface ServerPluginpublic java.io.Serializable getStoreID()
getStoreID in interface MessageStorepublic boolean isRecoverable()
isRecoverable in interface MessageStorepublic boolean acceptReliableMessages()
MessageStore
acceptReliableMessages in interface MessageStorepublic MessageReference reference(Message m)
MessageStore
reference in interface MessageStorem - The Message for which to create the MessageReference
public MessageReference reference(long messageID)
MessageStore
reference in interface MessageStoremessageID -
public boolean forgetMessage(long messageID)
MessageStore
forgetMessage in interface MessageStoremessageID -
public int size()
public java.util.List messageIds()
public void setStoreID(java.lang.String storeID)
public java.lang.String toString()
protected org.jboss.messaging.core.plugin.MessageHolder addMessage(Message m)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||