public class GridTcpCommunicationMessageState extends Object
| Modifier and Type | Field and Description |
|---|---|
Object |
cur |
int |
idx |
Iterator<?> |
it |
boolean |
keyDone |
int |
readItems |
int |
readSize |
boolean |
typeWritten |
| Constructor and Description |
|---|
GridTcpCommunicationMessageState() |
public int idx
public boolean typeWritten
public Iterator<?> it
public Object cur
public boolean keyDone
public int readSize
public int readItems
public void messageWriter(GridNioMessageWriter msgWriter, @Nullable UUID nodeId)
msgWriter - Message writer.nodeId - Node ID (provided only if versions are different).public void messageReader(GridNioMessageReader msgReader, @Nullable UUID nodeId)
msgReader - Message reader.nodeId - Node ID (provided only if versions are different).public final void setBuffer(ByteBuffer buf)
buf - Buffer.public final boolean putByte(byte b)
b - Byte value.public final byte getByte()
public final boolean putShort(short s)
s - Short value.public final short getShort()
public final boolean putInt(int i)
i - Integer value.public final int getInt()
public final boolean putLong(long l)
l - Long value.public final long getLong()
public final boolean putFloat(float f)
f - Float value.public final float getFloat()
public final boolean putDouble(double d)
d - Double value.public final double getDouble()
public final boolean putChar(char c)
c - Char value.public final char getChar()
public final boolean putBoolean(boolean b)
b - Boolean value.public final boolean getBoolean()
public final boolean putByteArray(@Nullable byte[] arr)
arr - Byte array.public final byte[] getByteArray()
GridTcpCommunicationMessageAdapter.BYTE_ARR_NOT_READ
value if it was not fully read.public final boolean putShortArray(short[] arr)
arr - Short array.public final short[] getShortArray()
GridTcpCommunicationMessageAdapter.SHORT_ARR_NOT_READ
value if it was not fully read.public final boolean putIntArray(int[] arr)
arr - Integer array.public final int[] getIntArray()
GridTcpCommunicationMessageAdapter.INT_ARR_NOT_READ
value if it was not fully read.public final boolean putLongArray(long[] arr)
arr - Long array.public final long[] getLongArray()
GridTcpCommunicationMessageAdapter.LONG_ARR_NOT_READ
value if it was not fully read.public final boolean putFloatArray(float[] arr)
arr - Float array.public final float[] getFloatArray()
GridTcpCommunicationMessageAdapter.FLOAT_ARR_NOT_READ
value if it was not fully read.public final boolean putDoubleArray(double[] arr)
arr - Double array.public final double[] getDoubleArray()
GridTcpCommunicationMessageAdapter.DOUBLE_ARR_NOT_READ
value if it was not fully read.public final boolean putCharArray(char[] arr)
arr - Char array.public final char[] getCharArray()
GridTcpCommunicationMessageAdapter.CHAR_ARR_NOT_READ
value if it was not fully read.public final boolean putBooleanArray(boolean[] arr)
arr - Boolean array.public final boolean[] getBooleanArray()
GridTcpCommunicationMessageAdapter.BOOLEAN_ARR_NOT_READ
value if it was not fully read.public final boolean putUuid(@Nullable UUID uuid)
uuid - UUID.public final UUID getUuid()
UUID or special
GridTcpCommunicationMessageAdapter.UUID_NOT_READ
value if it was not fully read.public final boolean putGridUuid(@Nullable GridUuid uuid)
uuid - GridUuid.public final GridUuid getGridUuid()
GridUuid or special
GridTcpCommunicationMessageAdapter.GRID_UUID_NOT_READ
value if it was not fully read.public final boolean putClockDeltaVersion(@Nullable GridClockDeltaVersion ver)
ver - GridClockDeltaVersion.public final GridClockDeltaVersion getClockDeltaVersion()
GridClockDeltaVersion or special
GridTcpCommunicationMessageAdapter.CLOCK_DELTA_VER_NOT_READ
value if it was not fully read.public final boolean putByteArrayList(@Nullable GridByteArrayList list)
list - GridByteArrayList.public final GridByteArrayList getByteArrayList()
GridByteArrayList or special
GridTcpCommunicationMessageAdapter.BYTE_ARR_LIST_NOT_READ
value if it was not fully read.public final boolean putLongList(@Nullable GridLongList list)
list - GridLongList.public final GridLongList getLongList()
GridLongList or special
GridTcpCommunicationMessageAdapter.LONG_LIST_NOT_READ
value if it was not fully read.public final boolean putCacheVersion(@Nullable GridCacheVersion ver)
ver - GridCacheVersion.public final GridCacheVersion getCacheVersion()
GridCacheVersion or special
GridTcpCommunicationMessageAdapter.CACHE_VER_NOT_READ
value if it was not fully read.public final boolean putDhtPartitionExchangeId(@Nullable GridDhtPartitionExchangeId id)
id - GridDhtPartitionExchangeId.public final GridDhtPartitionExchangeId getDhtPartitionExchangeId()
GridDhtPartitionExchangeId or special
GridTcpCommunicationMessageAdapter.DHT_PART_EXCHANGE_ID_NOT_READ
value if it was not fully read.public final boolean putValueBytes(@Nullable GridCacheValueBytes bytes)
bytes - GridCacheValueBytes.public final GridCacheValueBytes getValueBytes()
GridCacheValueBytes or special
GridTcpCommunicationMessageAdapter.VAL_BYTES_NOT_READ
value if it was not fully read.public final boolean putDrInternalRequestEntry(@Nullable GridDrInternalRequestEntry e)
e - GridDrInternalRequestEntry.public final GridDrInternalRequestEntry getDrInternalRequestEntry()
GridDrInternalRequestEntry or special
GridTcpCommunicationMessageAdapter.DR_INT_REQ_ENTRY_NOT_READ
value if it was not fully read.public final boolean putString(@Nullable String str)
str - String.public final String getString()
String or special GridTcpCommunicationMessageAdapter.STR_NOT_READ
value if it was not fully read.public final boolean putBitSet(@Nullable BitSet bits)
bits - BitSet.public final BitSet getBitSet()
BitSet or special GridTcpCommunicationMessageAdapter.BIT_SET_NOT_READ
value if it was not fully read.public final boolean putEnum(@Nullable Enum<?> e)
e - Enum.public final boolean putMessage(@Nullable GridTcpCommunicationMessageAdapter msg)
msg - GridTcpCommunicationMessageAdapter.public final GridTcpCommunicationMessageAdapter getMessage()
GridTcpCommunicationMessageAdapter or special
GridTcpCommunicationMessageAdapter.MSG_NOT_READ
value if it was not fully read.public final boolean putIntClient(int i)
i - Integer value.public final int getIntClient()
public final boolean putLongClient(long val)
val - Long value.public final long getLongClient()
public final boolean putUuidClient(@Nullable UUID uuid)
uuid - UUID.public final boolean putByteArrayClient(byte[] arr)
arr - Byte array.public final byte[] getByteArrayClient(int len)
GridTcpCommunicationMessageAdapter.BYTE_ARR_NOT_READ
value if it was not fully read.public final UUID getUuidClient()
UUID or special
GridTcpCommunicationMessageAdapter.UUID_NOT_READ
value if it was not fully read.Copyright © 2014. All rights reserved.