public final class CacheEntryViews extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
CacheEntryViews.CacheEntryViewType
Types of built-in
CacheEntryView implementations. |
| Modifier and Type | Method and Description |
|---|---|
static CacheEntryView<Data,Data> |
createDefaultEntryView(Data key,
Data value,
CacheRecord record)
Creates a
DefaultCacheEntryView instance. |
static CacheEntryView<Data,Data> |
createEntryView(Data key,
Data value,
CacheRecord record,
CacheEntryViews.CacheEntryViewType cacheEntryViewType)
Creates a
CacheEntryView instance. |
static CacheEntryView<Data,Data> |
createLazyEntryView(Data key,
Data value,
CacheRecord record)
Creates a
LazyCacheEntryView instance. |
public static CacheEntryView<Data,Data> createDefaultEntryView(Data key, Data value, CacheRecord record)
DefaultCacheEntryView instance.key - the key to be wrappedvalue - the value to be wrappedrecord - CacheRecord instance to gather additional entry view properties like access time,
expiration time and access hitDefaultCacheEntryView instancepublic static CacheEntryView<Data,Data> createLazyEntryView(Data key, Data value, CacheRecord record)
LazyCacheEntryView instance.key - the key to be wrappedvalue - the value to be wrappedrecord - CacheRecord instance to gather additional entry view properties like access time,
expiration time and access hitLazyCacheEntryView instancepublic static CacheEntryView<Data,Data> createEntryView(Data key, Data value, CacheRecord record, CacheEntryViews.CacheEntryViewType cacheEntryViewType)
CacheEntryView instance.key - the key to be wrappedvalue - the value to be wrappedrecord - CacheRecord instance to gather additional entry view properties like
access time, expiration time and access hitcacheEntryViewType - the type of the CacheEntryView represented as CacheEntryViews.CacheEntryViewTypeCacheEntryView instanceCopyright © 2016 Hazelcast, Inc.. All Rights Reserved.