Class CDORemoteSessionMessage
java.lang.Object
org.eclipse.emf.cdo.session.remote.CDORemoteSessionMessage
A message from a
remote session
.- Since:
- 3.0
- Author:
- Eike Stepper
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic enum
Enumerates the possibleremote session message
priorities. -
Constructor Summary
ConstructorDescriptionCDORemoteSessionMessage
(String type, byte[] data) CDORemoteSessionMessage
(String type, CDORemoteSessionMessage.Priority priority) CDORemoteSessionMessage
(String type, CDORemoteSessionMessage.Priority priority, byte[] data) CDORemoteSessionMessage
(org.eclipse.net4j.util.io.ExtendedDataInput in) -
Method Summary
Modifier and TypeMethodDescriptionbyte[]
getData()
Returns a copy of this message's data as a byte array.org.eclipse.net4j.util.io.ExtendedDataInputStream
Returns a copy of this message's data as an extended input stream.org.eclipse.net4j.util.io.ExtendedDataOutputStream
Sets the data of this message as an extended output stream.Returns the priority of this message.getType()
Returns the type of this message that enablesmessage handlers
to decide whether to react on this message or not.void
setData
(byte[] data) Sets the data of this message as a byte array.toString()
void
write
(org.eclipse.net4j.util.io.ExtendedDataOutput out)
-
Constructor Details
-
CDORemoteSessionMessage
-
CDORemoteSessionMessage
-
CDORemoteSessionMessage
-
CDORemoteSessionMessage
-
CDORemoteSessionMessage
- Throws:
IOException
-
-
Method Details
-
write
- Throws:
IOException
-
getType
Returns the type of this message that enablesmessage handlers
to decide whether to react on this message or not.- Returns:
- the message type, never
null
.
-
getPriority
Returns the priority of this message.- Returns:
- the message priority, never
null
.
-
getData
public byte[] getData()Returns a copy of this message's data as a byte array. Thread-safety for the message data is ensured internally. -
setData
public void setData(byte[] data) Sets the data of this message as a byte array. Thread-safety for the message data is ensured internally. -
getInputStream
public 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! -
getOutputStream
public 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! -
toString
-