Package com.attivio.sdk.esb
Class StringMessage
- java.lang.Object
-
- com.attivio.sdk.esb.AbstractPlatformMessage
-
- com.attivio.sdk.esb.StringMessage
-
- All Implemented Interfaces:
PlatformMessage,java.io.Serializable,java.lang.Cloneable
public class StringMessage extends AbstractPlatformMessage
A simple PlatformMessage that holds a string. Client ID is set to a random UUID. This message can be used for very basic testing and message delivery.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface com.attivio.sdk.esb.PlatformMessage
DEFAULT_MAX_LOG_LENGTH, MESSAGE_DROPPED, MESSAGE_SEND_TIME_PROP, PROP_MAX_LOG_LENGTH
-
-
Constructor Summary
Constructors Constructor Description StringMessage()The default constructorStringMessage(java.lang.String strArg)Constructor with a string messageStringMessage(java.lang.String format, java.lang.Object... args)Constructor with a String format and a set of format parameters.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetString()Gets the stringinthashCode()voidsetString(java.lang.String string)Sets the stringjava.lang.StringtoString()-
Methods inherited from class com.attivio.sdk.esb.AbstractPlatformMessage
addMessageHistory, addMessageHistory, clone, getClientId, getEstimatedSize, getMessageHistory, getMessageId, getMetadata, getProperty, getProperty, getProperty, getProperty, getProperty, getProperty, getWorkflowQueue, getWorkflowQueue, hasProperty, isRedelivered, removeProperty, removeWorkflowQueue, setClientId, setMessageId, setProperty, setRedelivered, setWorkflowQueue, setWorkflowQueue, toMessageString, toString, toString, toString, toString, toString, toString, toString, toString, toString
-
-
-
-
Constructor Detail
-
StringMessage
public StringMessage()
The default constructor
-
StringMessage
public StringMessage(java.lang.String strArg)
Constructor with a string message- Parameters:
strArg- the string message
-
StringMessage
public StringMessage(java.lang.String format, java.lang.Object... args)Constructor with a String format and a set of format parameters.- Parameters:
format- the formatargs- the format parameters
-
-
Method Detail
-
getString
public java.lang.String getString()
Gets the string- Returns:
- the string
-
setString
public void setString(java.lang.String string)
Sets the string- Parameters:
string- value to set
-
toString
public java.lang.String toString()
- Overrides:
toStringin classAbstractPlatformMessage
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAbstractPlatformMessage
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classAbstractPlatformMessage
-
-