public interface MessageReference
Modifier and Type | Interface and Description |
---|---|
static class |
MessageReference.Factory |
Modifier and Type | Method and Description |
---|---|
void |
acknowledge() |
void |
acknowledge(Transaction tx) |
void |
acknowledge(Transaction tx,
AckReason reason,
ServerConsumer consumer) |
void |
acknowledge(Transaction tx,
ServerConsumer consumer) |
MessageReference |
copy(Queue queue) |
void |
decrementDeliveryCount() |
void |
emptyConsumerID() |
long |
getConsumerId() |
int |
getDeliveryCount() |
SimpleString |
getLastValueProperty() |
Message |
getMessage() |
long |
getMessageID() |
int |
getMessageMemoryEstimate()
We define this method aggregation here because on paging we need to hold the original estimate,
so we need to perform some extra steps on paging.
|
int |
getPersistedCount() |
long |
getPersistentSize()
This is the size of the message when persisted on disk which is used for metrics tracking
Note that even if the message itself is not persisted on disk (ie non-durable) this value is
still used for metrics tracking for the amount of data on a queue
|
Object |
getProtocolData()
To be used on holding protocol specific data during the delivery.
|
Queue |
getQueue() |
long |
getScheduledDeliveryTime() |
void |
handled() |
boolean |
hasConsumerId() |
void |
incrementDeliveryCount() |
boolean |
isAlreadyAcked() |
boolean |
isDurable() |
boolean |
isPaged() |
void |
onDelivery(Consumer<? super MessageReference> callback)
This is to be used in cases where a message delivery happens on an executor.
|
void |
setAlreadyAcked() |
void |
setConsumerId(long consumerID) |
void |
setDeliveryCount(int deliveryCount) |
void |
setPersistedCount(int deliveryCount) |
void |
setProtocolData(Object data)
To be used on holding protocol specific data during the delivery.
|
void |
setScheduledDeliveryTime(long scheduledDeliveryTime) |
boolean isPaged()
Message getMessage()
long getMessageID()
boolean isDurable()
SimpleString getLastValueProperty()
void onDelivery(Consumer<? super MessageReference> callback)
int getMessageMemoryEstimate()
Object getProtocolData()
void setProtocolData(Object data)
MessageReference copy(Queue queue)
long getScheduledDeliveryTime()
void setScheduledDeliveryTime(long scheduledDeliveryTime)
int getDeliveryCount()
void setDeliveryCount(int deliveryCount)
void setPersistedCount(int deliveryCount)
int getPersistedCount()
void incrementDeliveryCount()
void decrementDeliveryCount()
Queue getQueue()
void acknowledge(Transaction tx) throws Exception
Exception
void acknowledge(Transaction tx, ServerConsumer consumer) throws Exception
Exception
void acknowledge(Transaction tx, AckReason reason, ServerConsumer consumer) throws Exception
Exception
void emptyConsumerID()
void setConsumerId(long consumerID)
boolean hasConsumerId()
long getConsumerId()
void handled()
void setAlreadyAcked()
boolean isAlreadyAcked()
long getPersistentSize() throws ActiveMQException
ActiveMQException
Copyright © 2019 JBoss by Red Hat. All rights reserved.