|
|||||||||||
| 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. |
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)
|
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.ClassNotFoundExceptionpublic long getMessageID()
getMessageID in interface Routablepublic boolean isReliable()
isReliable in interface Routablepublic long getExpiration()
getExpiration in interface Routablepublic long getTimestamp()
getTimestamp in interface Routablepublic boolean isRedelivered()
isRedelivered in interface Routablepublic void setRedelivered(boolean redelivered)
setRedelivered in interface Routablepublic int getDeliveryCount()
getDeliveryCount in interface Routablepublic void incrementDeliveryCount()
incrementDeliveryCount in interface Routablepublic 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 Routablepublic java.io.Serializable getHeader(java.lang.String name)
Routable
getHeader in interface Routablepublic java.io.Serializable removeHeader(java.lang.String name)
Routable
removeHeader in interface Routablepublic boolean containsHeader(java.lang.String name)
Routable
containsHeader in interface Routablepublic java.util.Set getHeaderNames()
Routable
getHeaderNames in interface Routablepublic java.util.Map getHeaders()
getHeaders in interface Routablepublic byte getPriority()
getPriority in interface Routablepublic void setPriority(byte priority)
setPriority in interface Routable
public void writeExternal(java.io.ObjectOutput out)
throws java.io.IOException
writeExternal in interface java.io.Externalizablejava.io.IOException
public void readExternal(java.io.ObjectInput in)
throws java.io.IOException,
java.lang.ClassNotFoundException
readExternal in interface java.io.Externalizablejava.io.IOException
java.lang.ClassNotFoundExceptionpublic boolean isExpired()
isExpired in interface Routablepublic java.lang.String toString()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||