Package org.teiid.net.socket
Class Message
- java.lang.Object
-
- org.teiid.net.socket.Message
-
- All Implemented Interfaces:
Externalizable
,Serializable
public class Message extends Object implements Externalizable
A simple message holder. To indicate an exception result, the key is set to anExceptionHolder
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static long
serialVersionUID
-
Constructor Summary
Constructors Constructor Description Message()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Object
getContents()
Serializable
getMessageKey()
void
readExternal(ObjectInput in)
void
setContents(Object contents)
void
setMessageKey(Serializable messageKey)
String
toString()
void
writeExternal(ObjectOutput out)
-
-
-
Field Detail
-
serialVersionUID
public static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Method Detail
-
setContents
public void setContents(Object contents)
-
getContents
public Object getContents()
-
readExternal
public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
- Specified by:
readExternal
in interfaceExternalizable
- Throws:
IOException
ClassNotFoundException
-
writeExternal
public void writeExternal(ObjectOutput out) throws IOException
- Specified by:
writeExternal
in interfaceExternalizable
- Throws:
IOException
-
getMessageKey
public Serializable getMessageKey()
-
setMessageKey
public void setMessageKey(Serializable messageKey)
-
-