public class PagedReferenceImpl extends Object implements PagedReference
Constructor and Description |
---|
PagedReferenceImpl(PagePosition position,
PagedMessage message,
PageSubscription subscription) |
Modifier and Type | Method and Description |
---|---|
void |
acknowledge() |
void |
acknowledge(Transaction tx) |
MessageReference |
copy(Queue queue) |
void |
decrementDeliveryCount() |
int |
getDeliveryCount() |
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.
|
PagedMessage |
getPagedMessage() |
int |
getPersistedCount() |
PagePosition |
getPosition() |
Queue |
getQueue() |
long |
getScheduledDeliveryTime() |
void |
handled() |
void |
incrementDeliveryCount() |
boolean |
isPaged() |
void |
setDeliveryCount(int deliveryCount) |
void |
setPersistedCount(int count) |
void |
setScheduledDeliveryTime(long scheduledDeliveryTime) |
String |
toString() |
public PagedReferenceImpl(PagePosition position, PagedMessage message, PageSubscription subscription)
public ServerMessage getMessage()
getMessage
in interface MessageReference
public PagedMessage getPagedMessage()
getPagedMessage
in interface PagedReference
public PagePosition getPosition()
getPosition
in interface PagedReference
public boolean isPaged()
isPaged
in interface MessageReference
public void setPersistedCount(int count)
setPersistedCount
in interface MessageReference
public int getPersistedCount()
getPersistedCount
in interface MessageReference
public int getMessageMemoryEstimate()
MessageReference
getMessageMemoryEstimate
in interface MessageReference
public MessageReference copy(Queue queue)
copy
in interface MessageReference
public long getScheduledDeliveryTime()
getScheduledDeliveryTime
in interface MessageReference
public void setScheduledDeliveryTime(long scheduledDeliveryTime)
setScheduledDeliveryTime
in interface MessageReference
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 Queue getQueue()
getQueue
in interface MessageReference
public void handled()
handled
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
Copyright © 2012 JBoss by Red Hat. All Rights Reserved.