Package org.apache.synapse.message
Interface MessageProducer
-
- All Known Implementing Classes:
InMemoryProducer,JDBCProducer,JmsProducer,RabbitMQProducer
public interface MessageProducer
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancleanup()Cleans up this message consumerStringgetId()Returns the ID of this message consumer.voidsetId(int id)Sets the ID of this message consumer.booleanstoreMessage(MessageContext synCtx)Stores the given message to the store associated with this message consumer.
-
-
-
Method Detail
-
storeMessage
boolean storeMessage(MessageContext synCtx)
Stores the given message to the store associated with this message consumer.- Parameters:
synCtx- Message to be saved.- Returns:
trueif storing of the message is successful,falseotherwise.
-
cleanup
boolean cleanup()
Cleans up this message consumer- Returns:
trueif clean up is successful,falseotherwise.
-
setId
void setId(int id)
Sets the ID of this message consumer.- Parameters:
id- ID
-
getId
String getId()
Returns the ID of this message consumer.- Returns:
- ID
-
-