com.hazelcast.nio.serialization
Class DataAdapter
java.lang.Object
com.hazelcast.nio.serialization.DataAdapter
- All Implemented Interfaces:
- com.hazelcast.nio.SocketReadable, com.hazelcast.nio.SocketWritable
public class DataAdapter
- extends Object
- implements com.hazelcast.nio.SocketWritable, com.hazelcast.nio.SocketReadable
- Author:
- mdogan 1/23/13
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
stBit
protected static int stBit
data
protected Data data
DataAdapter
public DataAdapter(Data data)
DataAdapter
public DataAdapter(SerializationContext context)
DataAdapter
public DataAdapter(Data data,
SerializationContext context)
writeTo
public boolean writeTo(ByteBuffer destination)
- WARNING:
Should be in sync with
Data.writeData(com.hazelcast.nio.ObjectDataOutput)
- Specified by:
writeTo
in interface com.hazelcast.nio.SocketWritable
readFrom
public boolean readFrom(ByteBuffer source)
- WARNING:
Should be in sync with
Data.readData(com.hazelcast.nio.ObjectDataInput)
- Specified by:
readFrom
in interface com.hazelcast.nio.SocketReadable
setStatus
protected final void setStatus(int bit)
isStatusSet
protected final boolean isStatusSet(int bit)
getData
public final Data getData()
setData
public final void setData(Data data)
done
public boolean done()
onEnqueue
public void onEnqueue()
- Specified by:
onEnqueue
in interface com.hazelcast.nio.SocketWritable
reset
public void reset()
Copyright © 2013 Hazelcast, Inc.. All Rights Reserved.