Class GridIoUserMessage
- java.lang.Object
-
- org.apache.ignite.internal.managers.communication.GridIoUserMessage
-
- All Implemented Interfaces:
Serializable,Message
public class GridIoUserMessage extends Object implements Message
User message wrapper.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface org.apache.ignite.plugin.extensions.communication.Message
DIRECT_TYPE_SIZE
-
-
Constructor Summary
Constructors Constructor Description GridIoUserMessage()Default constructor, required forExternalizable.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description @Nullable Objectbody()voidbody(Object body)@org.jetbrains.annotations.Nullable byte[]bodyBytes()@Nullable IgniteUuidclassLoaderId()@Nullable GridDeploymentdeployment()voiddeployment(GridDeployment dep)@Nullable StringdeploymentClassName()@Nullable DeploymentModedeploymentMode()shortdirectType()Gets message type.bytefieldsCount()Gets fields count.@Nullable Map<UUID,IgniteUuid>loaderParticipants()voidonAckReceived()Method called when ack message received.booleanreadFrom(ByteBuffer buf, MessageReader reader)Reads this message from provided byte buffer.@Nullable Objecttopic()voidtopic(Object topic)@org.jetbrains.annotations.Nullable byte[]topicBytes()StringtoString()@Nullable StringuserVersion()booleanwriteTo(ByteBuffer buf, MessageWriter writer)Writes this message to provided byte buffer.
-
-
-
Constructor Detail
-
GridIoUserMessage
public GridIoUserMessage()
Default constructor, required forExternalizable.
-
-
Method Detail
-
bodyBytes
@Nullable public @org.jetbrains.annotations.Nullable byte[] bodyBytes()
- Returns:
- Serialized message body.
-
classLoaderId
@Nullable public @Nullable IgniteUuid classLoaderId()
- Returns:
- the Class loader ID.
-
deploymentMode
@Nullable public @Nullable DeploymentMode deploymentMode()
- Returns:
- Deployment mode.
-
deploymentClassName
@Nullable public @Nullable String deploymentClassName()
- Returns:
- Message body class name.
-
userVersion
@Nullable public @Nullable String userVersion()
- Returns:
- User version.
-
loaderParticipants
@Nullable public @Nullable Map<UUID,IgniteUuid> loaderParticipants()
- Returns:
- Node class loader participant map.
-
topicBytes
@Nullable public @org.jetbrains.annotations.Nullable byte[] topicBytes()
- Returns:
- Serialized message topic.
-
topic
public void topic(Object topic)
- Parameters:
topic- New message topic.
-
topic
@Nullable public @Nullable Object topic()
- Returns:
- Message topic.
-
body
public void body(Object body)
- Parameters:
body- New message body.
-
body
@Nullable public @Nullable Object body()
- Returns:
- Message body.
-
deployment
public void deployment(GridDeployment dep)
- Parameters:
dep- New message deployment.
-
deployment
@Nullable public @Nullable GridDeployment deployment()
- Returns:
- Message deployment.
-
onAckReceived
public void onAckReceived()
Method called when ack message received.- Specified by:
onAckReceivedin interfaceMessage
-
writeTo
public boolean writeTo(ByteBuffer buf, MessageWriter writer)
Writes this message to provided byte buffer.
-
readFrom
public boolean readFrom(ByteBuffer buf, MessageReader reader)
Reads this message from provided byte buffer.
-
directType
public short directType()
Gets message type.- Specified by:
directTypein interfaceMessage- Returns:
- Message type.
-
fieldsCount
public byte fieldsCount()
Gets fields count.- Specified by:
fieldsCountin interfaceMessage- Returns:
- Fields count.
-
-