public final class Packet extends Object implements SocketWritable, CallStateAware
Modifier and Type | Field and Description |
---|---|
ByteBuffer |
bbHeader |
ByteBuffer |
bbSizes |
int |
blockId |
long |
callId |
CallState |
callState |
boolean |
client |
Connection |
conn |
Long[] |
indexes |
byte[] |
indexTypes |
Address |
lockAddress |
int |
lockCount |
long |
longValue |
String |
name |
ClusterOperation |
operation |
static byte |
PACKET_VERSION |
byte |
redoData |
byte |
responseType |
int |
threadId |
long |
timeout |
int |
totalSize |
long |
ttl |
long |
txnId |
long |
version |
Constructor and Description |
---|
Packet() |
Modifier and Type | Method and Description |
---|---|
void |
clearForResponse() |
void |
flipBuffers() |
CallState |
getCallState() |
DataHolder |
getKey() |
Data |
getKeyData() |
DataHolder |
getValue() |
Data |
getValueData() |
void |
onEnqueue() |
void |
read() |
boolean |
read(ByteBuffer bb) |
protected boolean |
readBoolean(ByteBuffer bb) |
void |
reset() |
void |
set(String name,
ClusterOperation operation,
Object objKey,
Object objValue) |
void |
setFromConnection(Connection conn) |
void |
setFromRequest(Request request) |
void |
setKey(Data key) |
void |
setValue(Data value) |
String |
toString() |
protected void |
writeBoolean(ByteBuffer bb,
boolean value) |
boolean |
writeToSocketBuffer(ByteBuffer dest) |
public static final byte PACKET_VERSION
public String name
public ClusterOperation operation
public final ByteBuffer bbSizes
public final ByteBuffer bbHeader
public Long[] indexes
public byte[] indexTypes
public long txnId
public int threadId
public int lockCount
public Address lockAddress
public long timeout
public long ttl
public int blockId
public byte responseType
public long longValue
public long version
public long callId
public Connection conn
public int totalSize
public byte redoData
public boolean client
public CallState callState
public CallState getCallState()
getCallState
in interface CallStateAware
protected void writeBoolean(ByteBuffer bb, boolean value)
protected boolean readBoolean(ByteBuffer bb)
public void onEnqueue()
onEnqueue
in interface SocketWritable
public void read()
public void clearForResponse()
public void reset()
public void setFromRequest(Request request)
public void flipBuffers()
public final boolean writeToSocketBuffer(ByteBuffer dest)
public final boolean read(ByteBuffer bb)
public void set(String name, ClusterOperation operation, Object objKey, Object objValue)
public void setFromConnection(Connection conn)
public DataHolder getKey()
public DataHolder getValue()
public Data getKeyData()
public Data getValueData()
public void setKey(Data key)
public void setValue(Data value)
Copyright © 2013 Hazelcast, Inc.. All rights reserved.