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
|
java.lang.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 |
setAlive(boolean isAlive)
Set the connectivity state with the message 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 setAlive(boolean isAlive)
isAlive
- if connection available.void setId(int i)
i
- IDjava.lang.String getId()
Copyright © 2005-2020 Apache Software Foundation. All Rights Reserved.