Class TcpInverseConnectionResponseMessage
- java.lang.Object
-
- org.apache.ignite.spi.communication.tcp.internal.TcpInverseConnectionResponseMessage
-
- All Implemented Interfaces:
Serializable,Message,TcpConnectionIndexAwareMessage
public class TcpInverseConnectionResponseMessage extends Object implements TcpConnectionIndexAwareMessage
Inverse connection response message sent by client node as a response to inverse connection request received by discovery. The main purpose of this message is to communicate back to server node connection index of a thread waiting for establishing of communication connection.- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from interface org.apache.ignite.plugin.extensions.communication.Message
DIRECT_TYPE_SIZE
-
Fields inherited from interface org.apache.ignite.spi.communication.tcp.internal.TcpConnectionIndexAwareMessage
UNDEFINED_CONNECTION_INDEX
-
-
Constructor Summary
Constructors Constructor Description TcpInverseConnectionResponseMessage()TcpInverseConnectionResponseMessage(int connIdx)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intconnectionIndex()shortdirectType()Gets message type.bytefieldsCount()Gets fields count.voidonAckReceived()Method called when ack message received.booleanreadFrom(ByteBuffer buf, MessageReader reader)Reads this message from provided byte buffer.StringtoString()booleanwriteTo(ByteBuffer buf, MessageWriter writer)Writes this message to provided byte buffer.
-
-
-
Method Detail
-
connectionIndex
public int connectionIndex()
- Specified by:
connectionIndexin interfaceTcpConnectionIndexAwareMessage- Returns:
TcpConnectionIndexAwareMessage.UNDEFINED_CONNECTION_INDEXif standard index has to be used. Desired connection index otherwise.
-
writeTo
public boolean writeTo(ByteBuffer buf, MessageWriter writer)
Writes this message to provided byte buffer.
-
onAckReceived
public void onAckReceived()
Method called when ack message received.- Specified by:
onAckReceivedin interfaceMessage
-
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.
-
-