public class GridClientHandshakeRequest extends GridClientAbstractMessage
| Modifier and Type | Field and Description |
|---|---|
static byte |
SIGNAL_CHAR
Signal char.
|
| Constructor and Description |
|---|
GridClientHandshakeRequest()
Default constructor.
|
GridClientHandshakeRequest(byte protoId)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
byte |
protocolId() |
void |
protocolId(byte protoId) |
void |
putVersionByte(int idx,
byte b)
Sets the version byte to a given value.
|
void |
putVersionBytes(byte[] buf,
int off,
int len)
Sets the version bytes from specified buffer to a given value.
|
byte[] |
rawBytes() |
byte[] |
rawBytesNoHeader() |
void |
readExternal(ObjectInput in) |
String |
toString() |
byte[] |
versionBytes() |
void |
writeExternal(ObjectOutput out) |
clientId, clientId, destinationId, destinationId, requestId, requestId, sessionToken, sessionTokenpublic static final byte SIGNAL_CHAR
public GridClientHandshakeRequest()
public GridClientHandshakeRequest(byte protoId)
protoId - A protocol ID to use.@Nullable public byte[] versionBytes()
null, if version
bytes were not set.public void putVersionByte(int idx,
byte b)
idx - Byte index.b - Byte value.public void putVersionBytes(byte[] buf,
int off,
int len)
buf - Buffer.off - Offset.len - Length.public void protocolId(byte protoId)
protoId - New protocol ID.public byte protocolId()
public byte[] rawBytes()
public byte[] rawBytesNoHeader()
public void writeExternal(ObjectOutput out) throws IOException
writeExternal in interface ExternalizablewriteExternal in class GridClientAbstractMessageIOExceptionpublic void readExternal(ObjectInput in) throws IOException, ClassNotFoundException
readExternal in interface ExternalizablereadExternal in class GridClientAbstractMessageIOExceptionClassNotFoundExceptionCopyright © 2014. All rights reserved.