GigaSpaces XAP 9.7.2 API

org.openspaces.memcached
Class LocalCacheElement

java.lang.Object
  extended by org.openspaces.memcached.LocalCacheElement
All Implemented Interfaces:
Externalizable, Serializable

public final class LocalCacheElement
extends Object
implements Externalizable

Represents information about a cache entry.

See Also:
Serialized Form

Nested Class Summary
static class LocalCacheElement.IncrDecrResult
           
 
Constructor Summary
LocalCacheElement()
           
LocalCacheElement(Key key)
           
LocalCacheElement(Key key, int flags, int expire, long casUnique)
           
 
Method Summary
 LocalCacheElement.IncrDecrResult add(int mod)
           
 LocalCacheElement append(LocalCacheElement element)
           
 boolean equals(Object o)
           
 long getCasUnique()
           
 byte[] getData()
           
 int getExpire()
           
 int getFlags()
           
 Key getKey()
           
 int hashCode()
           
static LocalCacheElement key(Key key)
           
static int Now()
           
 LocalCacheElement prepend(LocalCacheElement element)
           
 void readExternal(ObjectInput in)
           
 void setCasUnique(long casUnique)
           
 void setData(byte[] data)
           
 int size()
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LocalCacheElement

public LocalCacheElement()

LocalCacheElement

public LocalCacheElement(Key key)

LocalCacheElement

public LocalCacheElement(Key key,
                         int flags,
                         int expire,
                         long casUnique)
Method Detail

Now

public static int Now()
Returns:
the current time in seconds

size

public int size()

append

public LocalCacheElement append(LocalCacheElement element)

prepend

public LocalCacheElement prepend(LocalCacheElement element)

add

public LocalCacheElement.IncrDecrResult add(int mod)

equals

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

hashCode

public int hashCode()
Overrides:
hashCode in class Object

key

public static LocalCacheElement key(Key key)

getExpire

public int getExpire()

getFlags

public int getFlags()

getData

public byte[] getData()

getKey

public Key getKey()

getCasUnique

public long getCasUnique()

setCasUnique

public void setCasUnique(long casUnique)

setData

public void setData(byte[] data)

readExternal

public void readExternal(ObjectInput in)
                  throws IOException
Specified by:
readExternal in interface Externalizable
Throws:
IOException

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Throws:
IOException

GigaSpaces XAP 9.7.2 API

Copyright © GigaSpaces.