public interface MessageConsumer
| Modifier and Type | Method and Description |
|---|---|
boolean |
ack()
Acknowledges the last message received so that it will be removed from the store.
|
boolean |
cleanup()
Cleans up this message consumer
|
String |
getId()
Returns the ID of this Message consumer.
|
boolean |
isAlive()
Check availability of connectivity with the message store
|
MessageContext |
receive()
Receives the next message from the store.
|
void |
setId(int i)
Sets the ID of this message consumer.
|
MessageContext receive()
boolean ack()
true if the acknowledgement is successful. false otherwise.boolean cleanup()
true if cleanup is successful, false otherwise.boolean isAlive()
true if connection available, false otherwise.void setId(int i)
i - IDString getId()
Copyright © 2005–2019 Apache Software Foundation. All rights reserved.