public class TxVersionedCache extends Object implements Closeable
| Modifier and Type | Field and Description |
|---|---|
static long |
INVALID_TX |
static long |
PENDING_TX |
| Constructor and Description |
|---|
TxVersionedCache(VersionedCache cache) |
TxVersionedCache(VersionedCache cache,
boolean conflictFree) |
| Modifier and Type | Method and Description |
|---|---|
io.kcache.KeyValueIterator<Comparable[],VersionedValue> |
all() |
void |
close() |
void |
flush() |
VersionedValue |
get(Comparable[] key) |
List<VersionedValue> |
getAll(Comparable[] key) |
String |
getName() |
boolean |
isEmpty() |
void |
put(Comparable[] key,
Comparable[] value) |
io.kcache.KeyValueIterator<Comparable[],VersionedValue> |
range(Comparable[] from,
boolean fromInclusive,
Comparable[] to,
boolean toInclusive) |
void |
remove(Comparable[] key) |
boolean |
replace(Comparable[] key,
Comparable[] oldValue,
Comparable[] newValue) |
boolean |
replace(Comparable[] oldKey,
Comparable[] oldValue,
Comparable[] newKey,
Comparable[] newValue) |
int |
size() |
TxVersionedCache |
subCache(Comparable[] from,
boolean fromInclusive,
Comparable[] to,
boolean toInclusive) |
public static final long INVALID_TX
public static final long PENDING_TX
public TxVersionedCache(VersionedCache cache)
public TxVersionedCache(VersionedCache cache, boolean conflictFree)
public String getName()
public int size()
public boolean isEmpty()
public VersionedValue get(Comparable[] key)
public List<VersionedValue> getAll(Comparable[] key)
public void put(Comparable[] key, Comparable[] value)
public boolean replace(Comparable[] key, Comparable[] oldValue, Comparable[] newValue)
public boolean replace(Comparable[] oldKey, Comparable[] oldValue, Comparable[] newKey, Comparable[] newValue)
public void remove(Comparable[] key)
public TxVersionedCache subCache(Comparable[] from, boolean fromInclusive, Comparable[] to, boolean toInclusive)
public io.kcache.KeyValueIterator<Comparable[],VersionedValue> range(Comparable[] from, boolean fromInclusive, Comparable[] to, boolean toInclusive)
public io.kcache.KeyValueIterator<Comparable[],VersionedValue> all()
public void flush()
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2020. All rights reserved.