public class Item extends Object
| Constructor and Description |
|---|
Item(Item src)
Copy constructor
|
Item(KeySpec ks) |
Item(KeySpec ks,
int flags,
int expiryTime,
byte[] value,
byte[] xattr,
long cas) |
| Modifier and Type | Method and Description |
|---|---|
void |
append(Item i) |
boolean |
ensureUnlocked(long cas)
Given a cas, ensure that the item is unlocked.
|
String |
getBase64() |
long |
getCas() |
long |
getCasReal() |
int |
getExpiryTime() |
long |
getExpiryTimeInMillis() |
int |
getFlags() |
KeySpec |
getKeySpec() |
long |
getModificationTime() |
String |
getUtf8() |
byte[] |
getValue() |
byte[] |
getXattr() |
boolean |
isLocked() |
void |
prepend(Item i) |
void |
setExpiryTime(int e) |
public Item(KeySpec ks, int flags, int expiryTime, byte[] value, byte[] xattr, long cas)
public Item(KeySpec ks)
public Item(Item src)
src - Item whose contents we should copypublic int getExpiryTime()
public long getExpiryTimeInMillis()
public void setExpiryTime(int e)
public long getModificationTime()
public int getFlags()
public KeySpec getKeySpec()
public byte[] getValue()
public byte[] getXattr()
public String getUtf8() throws CharacterCodingException
CharacterCodingExceptionpublic String getBase64()
public long getCas()
public long getCasReal()
public boolean isLocked()
public boolean ensureUnlocked(long cas)
cas - the cas value used to perform the operationpublic void append(Item i)
public void prepend(Item i)
Copyright © 2017. All rights reserved.