|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface Message
A message is a routable instance that has a payload. The payload is opaque to the messaging system.
Method Summary | |
---|---|
boolean |
containsProperty(SimpleString key)
|
boolean |
containsProperty(java.lang.String key)
|
void |
decode(MessagingBuffer buffer)
|
void |
decodeBody(MessagingBuffer buffer)
|
void |
decodeProperties(MessagingBuffer buffer)
|
void |
encode(MessagingBuffer buffer)
|
void |
encodeBody(MessagingBuffer buffer)
|
void |
encodeBody(MessagingBuffer buffer,
long start,
int size)
|
void |
encodeProperties(MessagingBuffer buffer)
|
MessagingBuffer |
getBody()
|
java.io.InputStream |
getBodyInputStream()
Get the InputStream used on a message that will be sent over a producer |
int |
getBodySize()
|
SimpleString |
getDestination()
|
int |
getEncodeSize()
|
long |
getExpiration()
|
long |
getLargeBodySize()
|
long |
getMessageID()
|
byte |
getPriority()
|
TypedProperties |
getProperties()
|
int |
getPropertiesEncodeSize()
|
java.lang.Object |
getProperty(SimpleString key)
|
java.lang.Object |
getProperty(java.lang.String key)
|
java.util.Set<SimpleString> |
getPropertyNames()
|
long |
getTimestamp()
|
byte |
getType()
|
boolean |
isDurable()
|
boolean |
isExpired()
|
boolean |
isLargeMessage()
|
void |
putBooleanProperty(SimpleString key,
boolean value)
|
void |
putBooleanProperty(java.lang.String key,
boolean value)
|
void |
putByteProperty(SimpleString key,
byte value)
|
void |
putByteProperty(java.lang.String key,
byte value)
|
void |
putBytesProperty(SimpleString key,
byte[] value)
|
void |
putBytesProperty(java.lang.String key,
byte[] value)
|
void |
putDoubleProperty(SimpleString key,
double value)
|
void |
putDoubleProperty(java.lang.String key,
double value)
|
void |
putFloatProperty(SimpleString key,
float value)
|
void |
putFloatProperty(java.lang.String key,
float value)
|
void |
putIntProperty(SimpleString key,
int value)
|
void |
putIntProperty(java.lang.String key,
int value)
|
void |
putLongProperty(SimpleString key,
long value)
|
void |
putLongProperty(java.lang.String key,
long value)
|
void |
putShortProperty(SimpleString key,
short value)
|
void |
putShortProperty(java.lang.String key,
short value)
|
void |
putStringProperty(SimpleString key,
SimpleString value)
|
void |
putStringProperty(java.lang.String key,
java.lang.String value)
|
void |
putTypedProperties(TypedProperties properties)
|
java.lang.Object |
removeProperty(SimpleString key)
|
java.lang.Object |
removeProperty(java.lang.String key)
|
void |
setBody(MessagingBuffer body)
|
void |
setBodyInputStream(java.io.InputStream stream)
Set the InputStream used on a message that will be sent over a producer |
void |
setDestination(SimpleString destination)
|
void |
setDurable(boolean durable)
|
void |
setExpiration(long expiration)
|
void |
setPriority(byte priority)
|
void |
setTimestamp(long timestamp)
|
java.util.Map<java.lang.String,java.lang.Object> |
toMap()
|
Method Detail |
---|
long getMessageID()
SimpleString getDestination()
void setDestination(SimpleString destination)
byte getType()
boolean isDurable()
void setDurable(boolean durable)
long getExpiration()
boolean isExpired()
void setExpiration(long expiration)
long getTimestamp()
void setTimestamp(long timestamp)
byte getPriority()
void setPriority(byte priority)
int getEncodeSize()
void encode(MessagingBuffer buffer)
void decode(MessagingBuffer buffer)
int getPropertiesEncodeSize()
void encodeProperties(MessagingBuffer buffer)
void decodeProperties(MessagingBuffer buffer)
int getBodySize()
boolean isLargeMessage()
long getLargeBodySize()
void encodeBody(MessagingBuffer buffer, long start, int size)
void setBodyInputStream(java.io.InputStream stream)
java.io.InputStream getBodyInputStream()
void encodeBody(MessagingBuffer buffer)
void decodeBody(MessagingBuffer buffer)
TypedProperties getProperties()
void putBooleanProperty(SimpleString key, boolean value)
void putByteProperty(SimpleString key, byte value)
void putBytesProperty(SimpleString key, byte[] value)
void putShortProperty(SimpleString key, short value)
void putIntProperty(SimpleString key, int value)
void putLongProperty(SimpleString key, long value)
void putFloatProperty(SimpleString key, float value)
void putDoubleProperty(SimpleString key, double value)
void putStringProperty(SimpleString key, SimpleString value)
void putBooleanProperty(java.lang.String key, boolean value)
void putByteProperty(java.lang.String key, byte value)
void putBytesProperty(java.lang.String key, byte[] value)
void putShortProperty(java.lang.String key, short value)
void putIntProperty(java.lang.String key, int value)
void putLongProperty(java.lang.String key, long value)
void putFloatProperty(java.lang.String key, float value)
void putDoubleProperty(java.lang.String key, double value)
void putStringProperty(java.lang.String key, java.lang.String value)
void putTypedProperties(TypedProperties properties)
java.lang.Object getProperty(SimpleString key)
java.lang.Object removeProperty(SimpleString key)
boolean containsProperty(SimpleString key)
java.lang.Object getProperty(java.lang.String key)
java.lang.Object removeProperty(java.lang.String key)
boolean containsProperty(java.lang.String key)
java.util.Set<SimpleString> getPropertyNames()
java.util.Map<java.lang.String,java.lang.Object> toMap()
MessagingBuffer getBody()
void setBody(MessagingBuffer body)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |