public class InMemoryStore extends AbstractMessageStore
description, fileName, lock, messageStoreMBean, messageStoreObservers, name, parameterKeyMap, parameters, sequence, synapseConfiguration, synapseEnvironment| Constructor and Description |
|---|
InMemoryStore() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Delete all the Messages in the Message Store
|
void |
destroy()
This method should implement the destroying of the
implemented parts of the configuration.
|
MessageContext |
get(int index)
Return the Message in given index position
(this may depend on the implementation)
|
MessageContext |
get(String messageId)
Get the Message with the given ID from the Message store without removing it
|
List<MessageContext> |
getAll()
Get the All messages in the Message store without removing them from the queue
|
MessageConsumer |
getConsumer()
Returns a Message Consumer for this message store.
|
MessageProducer |
getProducer()
Returns a Message Producer for this message store.
|
Object |
getQLock() |
int |
getType()
Returns the type of this message store.
|
void |
init(SynapseEnvironment se)
This method should implement the initialization of the
implemented parts of the configuration.
|
MessageContext |
remove()
Retrieves and removes the first Message in this store.
|
MessageContext |
remove(String messageID)
Delete and return the MessageContext with given Message id
|
int |
size()
Returns the number of Messages in this store.
|
addParameter, addParameterKey, dequeued, difference, enqueued, getArtifactContainerName, getDescription, getFileName, getLock, getName, getParameterKey, getParameterKeyMap, getParameters, isEdited, nextConsumerId, nextProducerId, notifyMessageAddition, notifyMessageRemoval, registerObserver, setArtifactContainerName, setDescription, setFileName, setIsEdited, setName, setParameters, unregisterObserverpublic MessageProducer getProducer()
MessageStorepublic MessageConsumer getConsumer()
MessageStorepublic int getType()
MessageStoreConstants.JMS_MS, Constants.INMEMORY_MS,
or Constants.JDBC_MSgetType in interface MessageStoregetType in class AbstractMessageStorepublic int size()
MessageStoresize in interface MessageStoresize in class AbstractMessageStorepublic MessageContext remove() throws NoSuchElementException
MessageStoreNoSuchElementException - if store is emptypublic void clear()
MessageStorepublic MessageContext remove(String messageID)
MessageStoremessageID - message id of the Messagepublic MessageContext get(int index)
MessageStoreindex - position of the messagepublic List<MessageContext> getAll()
MessageStorepublic MessageContext get(String messageId)
MessageStoremessageId - A message ID stringpublic void init(SynapseEnvironment se)
ManagedLifecycleinit in interface ManagedLifecycleinit in class AbstractMessageStorese - SynapseEnvironment to be used for initializationpublic void destroy()
ManagedLifecycledestroy in interface ManagedLifecycledestroy in class AbstractMessageStorepublic Object getQLock()
Copyright © 2005–2019 Apache Software Foundation. All rights reserved.