org.jboss.messaging.core.server.impl
Class MessageReferenceImpl

java.lang.Object
  extended by org.jboss.messaging.core.server.impl.MessageReferenceImpl
All Implemented Interfaces:
MessageReference

public class MessageReferenceImpl
extends java.lang.Object
implements MessageReference

Implementation of a MessageReference

Version:
1.3 MessageReferenceImpl.java,v 1.3 2006/02/23 17:45:57 timfox Exp
Author:
Constructor Summary
  MessageReferenceImpl(MessageReferenceImpl other, Queue queue)
           
protected MessageReferenceImpl(ServerMessage message, Queue queue)
           
 
Method Summary
 MessageReference copy(Queue queue)
           
 void decrementDeliveryCount()
           
 int getDeliveryCount()
           
 int getMemoryEstimate()
           
 ServerMessage getMessage()
           
 Queue getQueue()
           
 long getScheduledDeliveryTime()
           
 void incrementDeliveryCount()
           
 void setDeliveryCount(int deliveryCount)
           
 void setScheduledDeliveryTime(long scheduledDeliveryTime)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MessageReferenceImpl

public MessageReferenceImpl(MessageReferenceImpl other,
                            Queue queue)

MessageReferenceImpl

protected MessageReferenceImpl(ServerMessage message,
                               Queue queue)
Method Detail

copy

public MessageReference copy(Queue queue)
Specified by:
copy in interface MessageReference

getMemoryEstimate

public int getMemoryEstimate()
Specified by:
getMemoryEstimate in interface MessageReference

getDeliveryCount

public int getDeliveryCount()
Specified by:
getDeliveryCount in interface MessageReference

setDeliveryCount

public void setDeliveryCount(int deliveryCount)
Specified by:
setDeliveryCount in interface MessageReference

incrementDeliveryCount

public void incrementDeliveryCount()
Specified by:
incrementDeliveryCount in interface MessageReference

decrementDeliveryCount

public void decrementDeliveryCount()
Specified by:
decrementDeliveryCount in interface MessageReference

getScheduledDeliveryTime

public long getScheduledDeliveryTime()
Specified by:
getScheduledDeliveryTime in interface MessageReference
Returns:
The time in the future that delivery will be delayed until, or zero if no scheduled delivery will occur

setScheduledDeliveryTime

public void setScheduledDeliveryTime(long scheduledDeliveryTime)
Specified by:
setScheduledDeliveryTime in interface MessageReference

getMessage

public ServerMessage getMessage()
Specified by:
getMessage in interface MessageReference

getQueue

public Queue getQueue()
Specified by:
getQueue in interface MessageReference

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object


Copyright © 2006 JBoss Inc. All Rights Reserved.