|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.jboss.messaging.core.message.RoutableSupport
Field Summary | |
protected static byte |
BOOLEAN
A boolean property |
protected static byte |
BYTE
A byte property |
protected static byte |
BYTES
|
protected int |
deliveryCount
|
protected static byte |
DOUBLE
A double property |
protected long |
expiration
GMT milliseconds at which this message expires. |
protected static byte |
FLOAT
A float property |
protected java.util.Map |
headers
|
protected static byte |
INT
An integer property |
protected static byte |
LIST
|
protected static byte |
LONG
A long property |
protected static byte |
MAP
|
protected long |
messageID
|
protected static byte |
NULL
A null property |
protected static byte |
OBJECT
An object property |
protected byte |
priority
|
protected boolean |
redelivered
|
protected boolean |
reliable
|
protected static byte |
SHORT
A short property |
protected static byte |
STRING
A string property |
protected long |
timestamp
|
Fields inherited from interface org.jboss.messaging.core.Routable |
COLLECTOR_ID, REMOTE_ROUTABLE, REPLICATOR_ID |
Constructor Summary | |
|
RoutableSupport()
Required by externalization. |
|
RoutableSupport(long messageID)
Constructs a generic Routable that is not reliable and does not expire. |
|
RoutableSupport(long messageID,
boolean reliable)
Constructs a generic Routable that does not expire. |
|
RoutableSupport(long messageID,
boolean reliable,
long timeToLive)
|
|
RoutableSupport(long messageID,
boolean reliable,
long expiration,
long timestamp,
byte priority,
int deliveryCount,
java.util.Map headers)
|
protected |
RoutableSupport(RoutableSupport other)
|
Method Summary | |
boolean |
containsHeader(java.lang.String name)
Returns true if the Routable contains the specified header. |
void |
decrementDeliveryCount()
|
int |
getDeliveryCount()
|
long |
getExpiration()
|
java.io.Serializable |
getHeader(java.lang.String name)
Returns the value corresponding to the header name. |
java.util.Set |
getHeaderNames()
Returns a copy of the header name set. |
java.util.Map |
getHeaders()
|
long |
getMessageID()
|
byte |
getPriority()
|
long |
getTimestamp()
|
void |
incrementDeliveryCount()
|
protected static java.io.Serializable |
internalReadObject(java.io.ObjectInput in,
boolean longStrings)
|
protected static void |
internalWriteObject(java.io.ObjectOutput out,
java.io.Serializable value,
boolean containerTypes,
boolean longStrings)
|
boolean |
isExpired()
|
boolean |
isRedelivered()
|
boolean |
isReliable()
|
java.io.Serializable |
putHeader(java.lang.String name,
java.io.Serializable value)
Binds a header. |
void |
readExternal(java.io.ObjectInput in)
|
static java.util.List |
readList(java.io.ObjectInput in)
|
static java.util.Map |
readMap(java.io.ObjectInput in,
boolean stringKeys)
|
java.io.Serializable |
removeHeader(java.lang.String name)
Removes the header. |
void |
setDeliveryCount(int deliveryCount)
|
void |
setPriority(byte priority)
|
void |
setRedelivered(boolean redelivered)
|
void |
setReliable(boolean reliable)
|
java.lang.String |
toString()
|
void |
writeExternal(java.io.ObjectOutput out)
|
static void |
writeList(java.io.ObjectOutput out,
java.util.List list)
|
static void |
writeMap(java.io.ObjectOutput out,
java.util.Map map,
boolean stringKeys)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.jboss.messaging.core.Routable |
getMessage, isReference |
Field Detail |
protected static final byte BYTE
protected static final byte SHORT
protected static final byte INT
protected static final byte LONG
protected static final byte FLOAT
protected static final byte DOUBLE
protected static final byte BOOLEAN
protected static final byte STRING
protected static final byte OBJECT
protected static final byte NULL
protected static final byte BYTES
protected static final byte MAP
protected static final byte LIST
protected long messageID
protected boolean reliable
protected long expiration
protected long timestamp
protected java.util.Map headers
protected boolean redelivered
protected byte priority
protected int deliveryCount
Constructor Detail |
public RoutableSupport()
public RoutableSupport(long messageID)
public RoutableSupport(long messageID, boolean reliable)
public RoutableSupport(long messageID, boolean reliable, long timeToLive)
public RoutableSupport(long messageID, boolean reliable, long expiration, long timestamp, byte priority, int deliveryCount, java.util.Map headers)
protected RoutableSupport(RoutableSupport other)
Method Detail |
public static void writeList(java.io.ObjectOutput out, java.util.List list) throws java.io.IOException
java.io.IOException
public static java.util.List readList(java.io.ObjectInput in) throws java.lang.ClassNotFoundException, java.io.IOException
java.lang.ClassNotFoundException
java.io.IOException
protected static java.io.Serializable internalReadObject(java.io.ObjectInput in, boolean longStrings) throws java.io.IOException, java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
protected static void internalWriteObject(java.io.ObjectOutput out, java.io.Serializable value, boolean containerTypes, boolean longStrings) throws java.io.IOException
java.io.IOException
public static void writeMap(java.io.ObjectOutput out, java.util.Map map, boolean stringKeys) throws java.io.IOException
java.io.IOException
public static java.util.Map readMap(java.io.ObjectInput in, boolean stringKeys) throws java.io.IOException, java.lang.ClassNotFoundException
java.io.IOException
java.lang.ClassNotFoundException
public long getMessageID()
getMessageID
in interface Routable
public boolean isReliable()
isReliable
in interface Routable
public long getExpiration()
getExpiration
in interface Routable
public long getTimestamp()
getTimestamp
in interface Routable
public boolean isRedelivered()
isRedelivered
in interface Routable
public void setRedelivered(boolean redelivered)
setRedelivered
in interface Routable
public void setReliable(boolean reliable)
setReliable
in interface Routable
public int getDeliveryCount()
getDeliveryCount
in interface Routable
public void incrementDeliveryCount()
incrementDeliveryCount
in interface Routable
public void decrementDeliveryCount()
decrementDeliveryCount
in interface Routable
public void setDeliveryCount(int deliveryCount)
setDeliveryCount
in interface Routable
public java.io.Serializable putHeader(java.lang.String name, java.io.Serializable value)
Routable
putHeader
in interface Routable
public java.io.Serializable getHeader(java.lang.String name)
Routable
getHeader
in interface Routable
public java.io.Serializable removeHeader(java.lang.String name)
Routable
removeHeader
in interface Routable
public boolean containsHeader(java.lang.String name)
Routable
containsHeader
in interface Routable
public java.util.Set getHeaderNames()
Routable
getHeaderNames
in interface Routable
public java.util.Map getHeaders()
getHeaders
in interface Routable
public byte getPriority()
getPriority
in interface Routable
public void setPriority(byte priority)
setPriority
in interface Routable
public void writeExternal(java.io.ObjectOutput out) throws java.io.IOException
writeExternal
in interface java.io.Externalizable
java.io.IOException
public void readExternal(java.io.ObjectInput in) throws java.io.IOException, java.lang.ClassNotFoundException
readExternal
in interface java.io.Externalizable
java.io.IOException
java.lang.ClassNotFoundException
public boolean isExpired()
isExpired
in interface Routable
public java.lang.String toString()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |