public class MessageReferenceImpl extends Object implements MessageReference
Modifier | Constructor and Description |
---|---|
|
MessageReferenceImpl() |
|
MessageReferenceImpl(MessageReferenceImpl other,
Queue queue) |
protected |
MessageReferenceImpl(ServerMessage message,
Queue queue) |
Modifier and Type | Method and Description |
---|---|
void |
acknowledge() |
void |
acknowledge(Transaction tx) |
void |
acknowledge(Transaction tx,
AckReason reason) |
MessageReference |
copy(Queue queue) |
void |
decrementDeliveryCount() |
boolean |
equals(Object other) |
Long |
getConsumerId() |
int |
getDeliveryCount() |
static int |
getMemoryEstimate() |
ServerMessage |
getMessage() |
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() |
Object |
getProtocolData()
To be used on holding protocol specific data during the delivery.
|
Queue |
getQueue() |
long |
getScheduledDeliveryTime() |
void |
handled() |
int |
hashCode() |
void |
incrementDeliveryCount() |
boolean |
isAlreadyAcked() |
boolean |
isPaged() |
void |
setAlreadyAcked() |
void |
setConsumerId(Long consumerID) |
void |
setDeliveryCount(int deliveryCount) |
void |
setPersistedCount(int persistedCount) |
void |
setProtocolData(Object protocolData)
To be used on holding protocol specific data during the delivery.
|
void |
setScheduledDeliveryTime(long scheduledDeliveryTime) |
String |
toString() |
public MessageReferenceImpl()
public MessageReferenceImpl(MessageReferenceImpl other, Queue queue)
protected MessageReferenceImpl(ServerMessage message, Queue queue)
public Object getProtocolData()
MessageReference
getProtocolData
in interface MessageReference
public void setProtocolData(Object protocolData)
MessageReference
setProtocolData
in interface MessageReference
public int getPersistedCount()
getPersistedCount
in interface MessageReference
public void setPersistedCount(int persistedCount)
setPersistedCount
in interface MessageReference
persistedCount
- the persistedCount to setpublic MessageReference copy(Queue queue)
copy
in interface MessageReference
public static int getMemoryEstimate()
public int getDeliveryCount()
getDeliveryCount
in interface MessageReference
public void setDeliveryCount(int deliveryCount)
setDeliveryCount
in interface MessageReference
public void incrementDeliveryCount()
incrementDeliveryCount
in interface MessageReference
public void decrementDeliveryCount()
decrementDeliveryCount
in interface MessageReference
public long getScheduledDeliveryTime()
getScheduledDeliveryTime
in interface MessageReference
public void setScheduledDeliveryTime(long scheduledDeliveryTime)
setScheduledDeliveryTime
in interface MessageReference
public ServerMessage getMessage()
getMessage
in interface MessageReference
public Queue getQueue()
getQueue
in interface MessageReference
public void handled()
handled
in interface MessageReference
public void setAlreadyAcked()
setAlreadyAcked
in interface MessageReference
public boolean isAlreadyAcked()
isAlreadyAcked
in interface MessageReference
public boolean isPaged()
isPaged
in interface MessageReference
public void acknowledge() throws Exception
acknowledge
in interface MessageReference
Exception
public void acknowledge(Transaction tx) throws Exception
acknowledge
in interface MessageReference
Exception
public void acknowledge(Transaction tx, AckReason reason) throws Exception
acknowledge
in interface MessageReference
Exception
public void setConsumerId(Long consumerID)
setConsumerId
in interface MessageReference
public Long getConsumerId()
getConsumerId
in interface MessageReference
public int getMessageMemoryEstimate()
MessageReference
getMessageMemoryEstimate
in interface MessageReference
Copyright © 2017 JBoss by Red Hat. All rights reserved.