|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
UMOMessageAdapter
provides a common abstraction of different message
implementations provided by different underlying technologies
Method Summary | |
boolean |
getBooleanProperty(java.lang.String name,
boolean defaultValue)
Gets a boolean property from the event |
int |
getCorrelationGroupSize()
Determines how many messages are in the correlation group |
java.lang.String |
getCorrelationId()
Sets a correlationId for this message. |
int |
getCorrelationSequence()
Gets the sequence or ordering number for this message in the the correlation group (as defined by the correlationId) |
double |
getDoubleProperty(java.lang.String name,
double defaultValue)
Gets a double property from the event |
int |
getErrorCode()
If an error occurred during the processing of this message this will return a value greater than zero |
int |
getIntProperty(java.lang.String name,
int defaultValue)
Gets an integer property from the event |
long |
getLongProperty(java.lang.String name,
long defaultValue)
Gets a long property from the event |
java.lang.Object |
getPayload()
|
byte[] |
getPayloadAsBytes()
Converts the message implementation into a String representation |
java.lang.String |
getPayloadAsString()
Converts the message implementation into a String representation |
java.lang.Object |
getProperty(java.lang.Object key)
Gets a property of the message implementation |
java.lang.Object |
getProperty(java.lang.String name,
java.lang.Object defaultValue)
Gets a property from the event |
java.util.Iterator |
getPropertyNames()
|
java.lang.Object |
getReplyTo()
Sets a replyTo address for this message. |
java.lang.String |
getUniqueId()
gets the unique identifier for the message. |
java.lang.Object |
removeProperty(java.lang.Object key)
Removes a property on this message |
void |
setBooleanProperty(java.lang.String name,
boolean value)
Sets a boolean property on the event |
void |
setCorrelationGroupSize(int size)
Determines how many messages are in the correlation group |
void |
setCorrelationId(java.lang.String id)
Sets a correlationId for this message. |
void |
setCorrelationSequence(int sequence)
Gets the sequence or ordering number for this message in the the correlation group (as defined by the correlationId) |
void |
setDoubleProperty(java.lang.String name,
double value)
Sets a double property on the event |
void |
setErrorCode(int code)
If an error occurs while processing this message, this error code should be set to a value greater than zero and the palyoad of the this message should contain the error details |
void |
setIntProperty(java.lang.String name,
int value)
Sets a integerproperty on the event |
void |
setLongProperty(java.lang.String name,
long value)
Sets a long property on the event |
void |
setProperty(java.lang.Object key,
java.lang.Object value)
Set a property on the message |
void |
setReplyTo(java.lang.Object replyTo)
Sets a replyTo address for this message. |
Method Detail |
public java.lang.Object getProperty(java.lang.Object key)
key
- the key on which to lookup the property value
public void setProperty(java.lang.Object key, java.lang.Object value)
key
- the key on which to associate the valuevalue
- the property valuepublic java.lang.Object removeProperty(java.lang.Object key)
key
- the property key to remove
public java.lang.String getPayloadAsString() throws java.lang.Exception
java.lang.Exception
- Implementation may throw an endpoint specific exceptionpublic java.util.Iterator getPropertyNames()
public byte[] getPayloadAsBytes() throws java.lang.Exception
java.lang.Exception
- Implemetation may throw an endpoint specific exceptionpublic java.lang.Object getPayload()
public java.lang.String getUniqueId() throws UniqueIdNotSupportedException
UniqueIdNotSupportedException
- if the message does not support
a unique identifierpublic java.lang.Object getProperty(java.lang.String name, java.lang.Object defaultValue)
name
- the name or key of the propertydefaultValue
- a default value if the property doesn't exist in the event
public int getIntProperty(java.lang.String name, int defaultValue)
name
- the name or key of the propertydefaultValue
- a default value if the property doesn't exist in the event
public long getLongProperty(java.lang.String name, long defaultValue)
name
- the name or key of the propertydefaultValue
- a default value if the property doesn't exist in the event
public double getDoubleProperty(java.lang.String name, double defaultValue)
name
- the name or key of the propertydefaultValue
- a default value if the property doesn't exist in the event
public boolean getBooleanProperty(java.lang.String name, boolean defaultValue)
name
- the name or key of the propertydefaultValue
- a default value if the property doesn't exist in the event
public void setBooleanProperty(java.lang.String name, boolean value)
name
- the property name or keyvalue
- the property valuepublic void setIntProperty(java.lang.String name, int value)
name
- the property name or keyvalue
- the property valuepublic void setLongProperty(java.lang.String name, long value)
name
- the property name or keyvalue
- the property valuepublic void setDoubleProperty(java.lang.String name, double value)
name
- the property name or keyvalue
- the property valuepublic void setCorrelationId(java.lang.String id)
id
- the Id reference for this relationshippublic java.lang.String getCorrelationId()
public int getCorrelationSequence()
public void setCorrelationSequence(int sequence)
sequence
- the sequence number or -1 if the sequence is not importantpublic int getCorrelationGroupSize()
public void setCorrelationGroupSize(int size)
size
- the total messages in this group or -1 if the size is not knownpublic void setReplyTo(java.lang.Object replyTo)
replyTo
- the endpointUri url to reply topublic java.lang.Object getReplyTo()
public int getErrorCode()
public void setErrorCode(int code)
code
-
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |