org.openspaces.memcached
Class LocalCacheElement
java.lang.Object
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
LocalCacheElement
public LocalCacheElement()
LocalCacheElement
public LocalCacheElement(Key key)
LocalCacheElement
public LocalCacheElement(Key key,
int flags,
int expire,
long casUnique)
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
Copyright © GigaSpaces.