@Experimental public final class EntryViews extends Object
Modifier and Type | Class and Description |
---|---|
static interface |
EntryViews.AccessLoggingReadWriteView<K,V> |
static class |
EntryViews.NoValueReadOnlyViewExternalizer |
static class |
EntryViews.ReadOnlySnapshotViewExternalizer |
static class |
EntryViews.ReadWriteSnapshotViewExternalizer |
Modifier and Type | Method and Description |
---|---|
static <K,V> EntryView.ReadEntryView<K,V> |
noValue(Object key) |
static <K,V> EntryView.ReadEntryView<K,V> |
noValue(Object key,
DataConversion keyDataConversion) |
static <K,V> EntryView.ReadEntryView<K,V> |
readOnly(CacheEntry entry) |
static <K,V> EntryView.ReadEntryView<K,V> |
readOnly(CacheEntry<K,V> entry,
DataConversion keyDataConversion,
DataConversion valueDataConversion) |
static <K,V> EntryView.ReadEntryView<K,V> |
readOnly(K key,
V value,
Metadata metadata) |
static <K,V> EntryViews.AccessLoggingReadWriteView<K,V> |
readWrite(MVCCEntry entry,
DataConversion keyDataConversion,
DataConversion valueDataConversion) |
static <K,V> EntryViews.AccessLoggingReadWriteView<K,V> |
readWrite(MVCCEntry entry,
Object prevValue,
Metadata prevMetadata,
DataConversion keyDataConversion,
DataConversion valueDataConversion) |
static <R> R |
snapshot(R ret)
For convenience, a lambda might decide to return the entry view it received as parameter, because that makes easy
to return both value and meta parameters back to the client.
|
static <K,V> EntryView.WriteEntryView<K,V> |
writeOnly(CacheEntry entry,
DataConversion valueDataConversion) |
public static <K,V> EntryView.ReadEntryView<K,V> readOnly(CacheEntry<K,V> entry, DataConversion keyDataConversion, DataConversion valueDataConversion)
public static <K,V> EntryView.ReadEntryView<K,V> readOnly(CacheEntry entry)
public static <K,V> EntryView.ReadEntryView<K,V> readOnly(K key, V value, Metadata metadata)
public static <K,V> EntryView.WriteEntryView<K,V> writeOnly(CacheEntry entry, DataConversion valueDataConversion)
public static <K,V> EntryViews.AccessLoggingReadWriteView<K,V> readWrite(MVCCEntry entry, DataConversion keyDataConversion, DataConversion valueDataConversion)
public static <K,V> EntryViews.AccessLoggingReadWriteView<K,V> readWrite(MVCCEntry entry, Object prevValue, Metadata prevMetadata, DataConversion keyDataConversion, DataConversion valueDataConversion)
public static <K,V> EntryView.ReadEntryView<K,V> noValue(Object key)
public static <K,V> EntryView.ReadEntryView<K,V> noValue(Object key, DataConversion keyDataConversion)
public static <R> R snapshot(R ret)
If the lambda function decides to return an view, launder it into an immutable view to avoid the user trying apply any modifications to the entry view from outside the lambda function.
If the view is read-only, capture its data into a snapshot from the cached entry and avoid changing underneath.
Copyright © 2021 JBoss by Red Hat. All rights reserved.