Class CDORemoteSessionMessage
- java.lang.Object
- 
- org.eclipse.emf.cdo.session.remote.CDORemoteSessionMessage
 
- 
 public final class CDORemoteSessionMessage extends java.lang.ObjectA message from aremote session.- Since:
- 3.0
- Author:
- Eike Stepper
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classCDORemoteSessionMessage.PriorityEnumerates the possibleremote session messagepriorities.
 - 
Constructor SummaryConstructors Constructor Description CDORemoteSessionMessage(java.lang.String type)CDORemoteSessionMessage(java.lang.String type, byte[] data)CDORemoteSessionMessage(java.lang.String type, CDORemoteSessionMessage.Priority priority)CDORemoteSessionMessage(java.lang.String type, CDORemoteSessionMessage.Priority priority, byte[] data)CDORemoteSessionMessage(org.eclipse.net4j.util.io.ExtendedDataInput in)
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]getData()Returns a copy of this message's data as a byte array.org.eclipse.net4j.util.io.ExtendedDataInputStreamgetInputStream()Returns a copy of this message's data as an extended input stream.org.eclipse.net4j.util.io.ExtendedDataOutputStreamgetOutputStream()Sets the data of this message as an extended output stream.CDORemoteSessionMessage.PrioritygetPriority()Returns the priority of this message.java.lang.StringgetType()Returns the type of this message that enablesmessage handlersto decide whether to react on this message or not.voidsetData(byte[] data)Sets the data of this message as a byte array.java.lang.StringtoString()voidwrite(org.eclipse.net4j.util.io.ExtendedDataOutput out)
 
- 
- 
- 
Constructor Detail- 
CDORemoteSessionMessagepublic CDORemoteSessionMessage(java.lang.String type, CDORemoteSessionMessage.Priority priority, byte[] data)
 - 
CDORemoteSessionMessagepublic CDORemoteSessionMessage(java.lang.String type, CDORemoteSessionMessage.Priority priority)
 - 
CDORemoteSessionMessagepublic CDORemoteSessionMessage(java.lang.String type, byte[] data)
 - 
CDORemoteSessionMessagepublic CDORemoteSessionMessage(java.lang.String type) 
 - 
CDORemoteSessionMessagepublic CDORemoteSessionMessage(org.eclipse.net4j.util.io.ExtendedDataInput in) throws java.io.IOException- Throws:
- java.io.IOException
 
 
- 
 - 
Method Detail- 
writepublic void write(org.eclipse.net4j.util.io.ExtendedDataOutput out) throws java.io.IOException- Throws:
- java.io.IOException
 
 - 
getTypepublic java.lang.String getType() Returns the type of this message that enablesmessage handlersto decide whether to react on this message or not.- Returns:
- the message type, never null.
 
 - 
getPrioritypublic CDORemoteSessionMessage.Priority getPriority() Returns the priority of this message.- Returns:
- the message priority, never null.
 
 - 
getDatapublic byte[] getData() Returns a copy of this message's data as a byte array. Thread-safety for the message data is ensured internally.
 - 
setDatapublic void setData(byte[] data) Sets the data of this message as a byte array. Thread-safety for the message data is ensured internally.
 - 
getInputStreampublic org.eclipse.net4j.util.io.ExtendedDataInputStream getInputStream() Returns a copy of this message's data as an extended input stream. Thread-safety for the message data is ensured internally, but not for the wrapping stream!
 - 
getOutputStreampublic org.eclipse.net4j.util.io.ExtendedDataOutputStream getOutputStream() Sets the data of this message as an extended output stream. Thread-safety for the message data is ensured internally, but not for the wrapping stream!
 - 
toStringpublic java.lang.String toString() - Overrides:
- toStringin class- java.lang.Object
 
 
- 
 
-