public class DataAdapter extends Object implements SocketWritable, SocketReadable
Constructor and Description |
---|
DataAdapter(Data data) |
DataAdapter(Data data,
PortableContext context) |
DataAdapter(PortableContext context) |
Modifier and Type | Method and Description |
---|---|
boolean |
done() |
Data |
getData() |
protected boolean |
isStatusSet(int bit) |
boolean |
isUrgent()
Checks if this SocketWritable is urgent.
|
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 Data data
public DataAdapter(Data data)
public DataAdapter(PortableContext context)
public DataAdapter(Data data, PortableContext context)
public boolean isUrgent()
SocketWritable
isUrgent
in interface SocketWritable
public boolean writeTo(ByteBuffer destination)
Data.writeData(com.hazelcast.nio.ObjectDataOutput)
writeTo
in interface SocketWritable
destination
- the ByteBuffer to write to.public boolean readFrom(ByteBuffer source)
Data.readData(com.hazelcast.nio.ObjectDataInput)
readFrom
in interface 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 reset()
Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.