Package org.apache.synapse.message.store
Class MessageStoreView
- java.lang.Object
-
- org.apache.synapse.message.store.MessageStoreView
-
- All Implemented Interfaces:
MessageStoreViewMBean
public class MessageStoreView extends Object implements MessageStoreViewMBean
-
-
Constructor Summary
Constructors Constructor Description MessageStoreView(String name, MessageStore messageStore)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddelete(String messageID)Delete the Message with Given idvoiddeleteAll()Delete all the Messages in Message storeStringgetEnvelope(String messageID)Get the SOAP envelope of the given Message with given IDList<String>getMessageIds()Get the Message IDs of all stored Messages in the Message storelonggetSize()The message count in the store will be returned.
-
-
-
Constructor Detail
-
MessageStoreView
public MessageStoreView(String name, MessageStore messageStore)
-
-
Method Detail
-
deleteAll
public void deleteAll()
Description copied from interface:MessageStoreViewMBeanDelete all the Messages in Message store- Specified by:
deleteAllin interfaceMessageStoreViewMBean
-
getMessageIds
public List<String> getMessageIds()
Description copied from interface:MessageStoreViewMBeanGet the Message IDs of all stored Messages in the Message store- Specified by:
getMessageIdsin interfaceMessageStoreViewMBean- Returns:
- a list of message ID values
-
delete
public void delete(String messageID)
Description copied from interface:MessageStoreViewMBeanDelete the Message with Given id- Specified by:
deletein interfaceMessageStoreViewMBean- Parameters:
messageID- ID of the message to be deleted
-
getEnvelope
public String getEnvelope(String messageID)
Description copied from interface:MessageStoreViewMBeanGet the SOAP envelope of the given Message with given ID- Specified by:
getEnvelopein interfaceMessageStoreViewMBean- Parameters:
messageID- ID of the message to be returned- Returns:
- the SOAP envelope content as a string
-
getSize
public long getSize()
The message count in the store will be returned. The message count of the JDBC store taken from the table. The message count of other stores taken as the difference between the enqueue and the dequeue, which calculated in memory.- Specified by:
getSizein interfaceMessageStoreViewMBean- Returns:
- message count in the store
-
-