net.spy.memcached
Class CachedData

java.lang.Object
  extended by net.spy.memcached.CachedData

public final class CachedData
extends Object

Cached data with its attributes.


Field Summary
static int MAX_SIZE
          Maximum data size allowed by memcached.
 
Constructor Summary
CachedData(int f, byte[] d, int max_size)
          Get a CachedData instance for the given flags and byte array.
 
Method Summary
 byte[] getData()
          Get the stored data.
 int getFlags()
          Get the flags stored along with this value.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MAX_SIZE

public static final int MAX_SIZE
Maximum data size allowed by memcached.

See Also:
Constant Field Values
Constructor Detail

CachedData

public CachedData(int f,
                  byte[] d,
                  int max_size)
Get a CachedData instance for the given flags and byte array.

Parameters:
f - the flags
d - the data
max_size - the maximum allowable size.
Method Detail

getData

public byte[] getData()
Get the stored data.


getFlags

public int getFlags()
Get the flags stored along with this value.


toString

public String toString()
Overrides:
toString in class Object