|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.airavata.wsmg.msgbox.Storage.memory.InMemoryImpl
public class InMemoryImpl
This is the in memory storage implementation for MsgBoxService, this will be initialized if msgBox.properties is configured not to use database implementation.
| Constructor Summary | |
|---|---|
InMemoryImpl(long time)
|
|
| Method Summary | |
|---|---|
String |
createMsgBox()
|
void |
destroyMsgBox(String key)
|
void |
dispose()
Clean up method |
void |
putMessageIntoMsgBox(String msgBoxID,
String messageID,
String soapAction,
org.apache.axiom.om.OMElement message)
|
void |
removeAncientMessages()
The ancientness is defined in the db.config file. |
List<String> |
takeMessagesFromMsgBox(String key)
IMPORTANT::: List retrieved from this method is sorted by time in ascending order i.e the newest message will appear as the last item in the list. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public InMemoryImpl(long time)
| Method Detail |
|---|
public String createMsgBox()
throws Exception
createMsgBox in interface MsgBoxStorageException
public void destroyMsgBox(String key)
throws Exception
destroyMsgBox in interface MsgBoxStorageException
public List<String> takeMessagesFromMsgBox(String key)
throws Exception
MsgBoxStorage
takeMessagesFromMsgBox in interface MsgBoxStorageException
public void putMessageIntoMsgBox(String msgBoxID,
String messageID,
String soapAction,
org.apache.axiom.om.OMElement message)
throws Exception
putMessageIntoMsgBox in interface MsgBoxStorageExceptionpublic void removeAncientMessages()
MsgBoxStorage
removeAncientMessages in interface MsgBoxStoragepublic void dispose()
MsgBoxStorage
dispose in interface MsgBoxStorage
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||