Class EntryViews
java.lang.Object
org.infinispan.functional.impl.EntryViews
Entry views implementation class holder.
- Since:
- 8.0
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic interfacestatic final classstatic final classstatic final class
- 
Method SummaryModifier and TypeMethodDescriptionstatic <K,V> EntryView.ReadEntryView <K, V> static <K,V> EntryView.ReadEntryView <K, V> noValue(Object key, DataConversion keyDataConversion) static <K,V> EntryView.ReadEntryView <K, V> 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> EntryViews.AccessLoggingReadWriteView <K, V> readWrite(MVCCEntry entry, Object prevValue, Metadata prevMetadata, DataConversion keyDataConversion, DataConversion valueDataConversion) static <K,V> EntryViews.AccessLoggingReadWriteView <K, V> readWrite(MVCCEntry entry, DataConversion keyDataConversion, DataConversion valueDataConversion) static <R> Rsnapshot(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) 
- 
Method Details- 
readOnlypublic static <K,V> EntryView.ReadEntryView<K,V> readOnly(CacheEntry<K, V> entry, DataConversion keyDataConversion, DataConversion valueDataConversion) 
- 
readOnly
- 
readOnly
- 
writeOnlypublic static <K,V> EntryView.WriteEntryView<K,V> writeOnly(CacheEntry entry, DataConversion valueDataConversion) 
- 
readWritepublic static <K,V> EntryViews.AccessLoggingReadWriteView<K,V> readWrite(MVCCEntry entry, DataConversion keyDataConversion, DataConversion valueDataConversion) 
- 
readWritepublic static <K,V> EntryViews.AccessLoggingReadWriteView<K,V> readWrite(MVCCEntry entry, Object prevValue, Metadata prevMetadata, DataConversion keyDataConversion, DataConversion valueDataConversion) 
- 
noValue
- 
noValuepublic static <K,V> EntryView.ReadEntryView<K,V> noValue(Object key, DataConversion keyDataConversion) 
- 
snapshotpublic 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.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. 
 
-