public class DataAdapter extends Object implements com.hazelcast.nio.SocketWritable, com.hazelcast.nio.SocketReadable
Modifier and Type | Field and Description |
---|---|
protected Data |
data |
protected static int |
stBit |
Constructor and Description |
---|
DataAdapter(Data data) |
DataAdapter(Data data,
SerializationContext context) |
DataAdapter(SerializationContext context) |
Modifier and Type | Method and Description |
---|---|
boolean |
done() |
Data |
getData() |
protected boolean |
isStatusSet(int bit) |
void |
onEnqueue() |
boolean |
readFrom(ByteBuffer source)
WARNING:
Should be in sync with
Data.readData(com.hazelcast.nio.ObjectDataInput) |
void |
reset() |
void |
setData(Data data) |
protected void |
setStatus(int bit) |
boolean |
writeTo(ByteBuffer destination)
WARNING:
Should be in sync with
Data.writeData(com.hazelcast.nio.ObjectDataOutput) |
protected static int stBit
protected Data data
public DataAdapter(Data data)
public DataAdapter(SerializationContext context)
public DataAdapter(Data data, SerializationContext context)
public boolean writeTo(ByteBuffer destination)
Data.writeData(com.hazelcast.nio.ObjectDataOutput)
writeTo
in interface com.hazelcast.nio.SocketWritable
public boolean readFrom(ByteBuffer source)
Data.readData(com.hazelcast.nio.ObjectDataInput)
readFrom
in interface com.hazelcast.nio.SocketReadable
protected final void setStatus(int bit)
protected final boolean isStatusSet(int bit)
public final Data getData()
public final void setData(Data data)
public boolean done()
public void onEnqueue()
onEnqueue
in interface com.hazelcast.nio.SocketWritable
public void reset()
Copyright © 2017 Hazelcast, Inc.. All Rights Reserved.