com.hazelcast.ascii.memcache
Class MemcacheEntry

java.lang.Object
  extended by com.hazelcast.ascii.memcache.MemcacheEntry
All Implemented Interfaces:
DataSerializable

public class MemcacheEntry
extends Object
implements DataSerializable


Constructor Summary
MemcacheEntry()
           
MemcacheEntry(String key, byte[] value, int flag)
           
 
Method Summary
 boolean equals(Object o)
           
 byte[] getBytes()
           
 int getFlag()
           
 byte[] getValue()
           
 int hashCode()
           
 void readData(ObjectDataInput in)
          Reads fields from the input stream
 ByteBuffer toNewBuffer()
           
 String toString()
           
 void writeData(ObjectDataOutput out)
          Writes object fields to output stream
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MemcacheEntry

public MemcacheEntry(String key,
                     byte[] value,
                     int flag)

MemcacheEntry

public MemcacheEntry()
Method Detail

readData

public void readData(ObjectDataInput in)
              throws IOException
Description copied from interface: DataSerializable
Reads fields from the input stream

Specified by:
readData in interface DataSerializable
Parameters:
in - input
Throws:
IOException

writeData

public void writeData(ObjectDataOutput out)
               throws IOException
Description copied from interface: DataSerializable
Writes object fields to output stream

Specified by:
writeData in interface DataSerializable
Parameters:
out - output
Throws:
IOException

toNewBuffer

public ByteBuffer toNewBuffer()

getFlag

public int getFlag()

getBytes

public byte[] getBytes()

getValue

public byte[] getValue()

equals

public boolean equals(Object o)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.