org.jboss.messaging.core.contract
Interface MessageReference
- All Known Implementing Classes:
- SimpleMessageReference
public interface MessageReference
A reference to a message.
Channels store message references rather than the messages themselves.
If many channels have contain the same reference this makes a lot of sense
- Version:
- $Revision: 3020 $
$Id: MessageReference.java 3020 2007-08-21 15:46:38Z timfox $
- Author:
- Ovidiu Feodorov, Tim Fox
getPagingOrder
long getPagingOrder()
setPagingOrder
void setPagingOrder(long order)
getMessage
Message getMessage()
copy
MessageReference copy()
getScheduledDeliveryTime
long getScheduledDeliveryTime()
- Returns:
- The time in the future that delivery will be delayed until, or zero if
no scheduled delivery will occur
setScheduledDeliveryTime
void setScheduledDeliveryTime(long scheduledDeliveryTime)
getDeliveryCount
int getDeliveryCount()
- Returns:
- the number of times delivery has been attempted for this routable
setDeliveryCount
void setDeliveryCount(int deliveryCount)
Copyright © 2006 JBoss Inc. All Rights Reserved.