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,
Data expiryPolicy,
CacheRecord<Object,Data> record)
Creates a
DefaultCacheEntryView instance. |
static CacheEntryView<Data,Data> |
createEntryView(Data key,
Data expiryPolicy,
CacheRecord record) |
static CacheEntryView<Data,Data> |
createEntryView(Data key,
Data value,
Data expiryPolicy,
CacheRecord record,
CacheEntryViews.CacheEntryViewType cacheEntryViewType)
Creates a
CacheEntryView instance. |
static CacheEntryView<Data,Data> |
createLazyEntryView(Data key,
Data value,
Data expiryPolicy,
CacheRecord record)
Creates a
LazyCacheEntryView instance. |
public static CacheEntryView<Data,Data> createDefaultEntryView(Data key, Data value, Data expiryPolicy, CacheRecord<Object,Data> 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> createEntryView(Data key, Data expiryPolicy, CacheRecord record)
public static CacheEntryView<Data,Data> createLazyEntryView(Data key, Data value, Data expiryPolicy, 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, Data expiryPolicy, 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.CacheEntryViewType
CacheEntryView
instanceCopyright © 2018 Hazelcast, Inc.. All Rights Reserved.