public class InMemoryProducer extends Object implements MessageProducer
| Constructor and Description |
|---|
InMemoryProducer(InMemoryStore store) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
cleanup()
Cleans up this message consumer
|
String |
getId()
Returns the ID of this message consumer.
|
InMemoryProducer |
setDestination(Queue<MessageContext> queue) |
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.
|
public InMemoryProducer(InMemoryStore store)
public boolean storeMessage(MessageContext synCtx)
MessageProducerstoreMessage in interface MessageProducersynCtx - Message to be saved.true if storing of the message is successful, false otherwise.public boolean cleanup()
MessageProducercleanup in interface MessageProducertrue if clean up is successful, false otherwise.public void setId(int id)
MessageProducersetId in interface MessageProducerid - IDpublic String getId()
MessageProducergetId in interface MessageProducerpublic InMemoryProducer setDestination(Queue<MessageContext> queue)
Copyright © 2005–2019 Apache Software Foundation. All rights reserved.