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 boolean
cleanup()
Cleans up this message consumerString
getId()
Returns the ID of this message consumer.void
setId(int id)
Sets the ID of this message consumer.boolean
storeMessage(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:
true
if storing of the message is successful,false
otherwise.
-
cleanup
boolean cleanup()
Cleans up this message consumer- Returns:
true
if clean up is successful,false
otherwise.
-
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
-
-