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 void
delete(String messageID)
Delete the Message with Given idvoid
deleteAll()
Delete all the Messages in Message storeString
getEnvelope(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 storelong
getSize()
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:MessageStoreViewMBean
Delete all the Messages in Message store- Specified by:
deleteAll
in interfaceMessageStoreViewMBean
-
getMessageIds
public List<String> getMessageIds()
Description copied from interface:MessageStoreViewMBean
Get the Message IDs of all stored Messages in the Message store- Specified by:
getMessageIds
in interfaceMessageStoreViewMBean
- Returns:
- a list of message ID values
-
delete
public void delete(String messageID)
Description copied from interface:MessageStoreViewMBean
Delete the Message with Given id- Specified by:
delete
in interfaceMessageStoreViewMBean
- Parameters:
messageID
- ID of the message to be deleted
-
getEnvelope
public String getEnvelope(String messageID)
Description copied from interface:MessageStoreViewMBean
Get the SOAP envelope of the given Message with given ID- Specified by:
getEnvelope
in 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:
getSize
in interfaceMessageStoreViewMBean
- Returns:
- message count in the store
-
-