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

java.lang.Object
  extended by org.jboss.messaging.core.message.impl.MessageImpl
      extended by org.jboss.messaging.core.server.impl.ServerMessageImpl
All Implemented Interfaces:
EncodingSupport, Message, ServerMessage

public class ServerMessageImpl
extends MessageImpl
implements ServerMessage

A ServerMessageImpl

Author:
Tim Fox

Field Summary
 
Fields inherited from class org.jboss.messaging.core.message.impl.MessageImpl
durable
 
Fields inherited from interface org.jboss.messaging.core.message.Message
HDR_ACTUAL_EXPIRY_TIME
 
Constructor Summary
ServerMessageImpl()
           
ServerMessageImpl(int type, boolean durable, long expiration, long timestamp, byte priority)
          Only used in testing
ServerMessageImpl(long messageID)
           
ServerMessageImpl(ServerMessageImpl other)
           
 
Method Summary
 ServerMessage copy()
           
 MessageReference createReference(Queue queue)
           
 int decrementDurableRefCount()
           
 long getConnectionID()
           
 int getDurableRefCount()
           
 long getMessageID()
           
 int incrementDurableRefCount()
           
 void setConnectionID(long connectionID)
           
 void setMessageID(long id)
           
 
Methods inherited from class org.jboss.messaging.core.message.impl.MessageImpl
containsProperty, decode, encode, encodeSize, getBody, getDestination, getExpiration, getPriority, getProperty, getPropertyNames, getTimestamp, getType, isDurable, isExpired, putBooleanProperty, putByteProperty, putBytesProperty, putDoubleProperty, putFloatProperty, putIntProperty, putLongProperty, putShortProperty, putStringProperty, removeProperty, setBody, setDestination, setDurable, setExpiration, setPriority, setTimestamp
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.messaging.core.message.Message
containsProperty, decode, encode, encodeSize, getBody, getDestination, getExpiration, getPriority, getProperty, getPropertyNames, getTimestamp, getType, isDurable, isExpired, putBooleanProperty, putByteProperty, putBytesProperty, putDoubleProperty, putFloatProperty, putIntProperty, putLongProperty, putShortProperty, putStringProperty, removeProperty, setBody, setDestination, setDurable, setExpiration, setPriority, setTimestamp
 

Constructor Detail

ServerMessageImpl

public ServerMessageImpl()

ServerMessageImpl

public ServerMessageImpl(long messageID)

ServerMessageImpl

public ServerMessageImpl(ServerMessageImpl other)

ServerMessageImpl

public ServerMessageImpl(int type,
                         boolean durable,
                         long expiration,
                         long timestamp,
                         byte priority)
Only used in testing

Method Detail

getMessageID

public long getMessageID()
Specified by:
getMessageID in interface ServerMessage

setMessageID

public void setMessageID(long id)
Specified by:
setMessageID in interface ServerMessage

getConnectionID

public long getConnectionID()
Specified by:
getConnectionID in interface ServerMessage

setConnectionID

public void setConnectionID(long connectionID)
Specified by:
setConnectionID in interface ServerMessage

createReference

public MessageReference createReference(Queue queue)
Specified by:
createReference in interface ServerMessage

getDurableRefCount

public int getDurableRefCount()
Specified by:
getDurableRefCount in interface ServerMessage

decrementDurableRefCount

public int decrementDurableRefCount()
Specified by:
decrementDurableRefCount in interface ServerMessage

incrementDurableRefCount

public int incrementDurableRefCount()
Specified by:
incrementDurableRefCount in interface ServerMessage

copy

public ServerMessage copy()
Specified by:
copy in interface ServerMessage


Copyright © 2006 JBoss Inc. All Rights Reserved.