public enum BuiltInCacheMergePolicies extends Enum<BuiltInCacheMergePolicies>
Enum that represents all built-in CacheMergePolicy
implementations.
Note:
When a new built-in CacheMergePolicy
is implemented,
its definition should be added here also.
Enum Constant and Description |
---|
HIGHER_HITS
Cache merge policy that merges cache entry from source to destination cache
if source entry has more hits than the destination one.
|
LATEST_ACCESS
Cache merge policy that merges cache entry from source to destination cache
if source entry has been accessed more recently than the destination entry.
|
PASS_THROUGH
Cache merge policy that merges cache entry from source to destination directly.
|
PUT_IF_ABSENT
Cache merge policy that merges cache entry from source to destination
if it does not exist in the destination cache.
|
Modifier and Type | Method and Description |
---|---|
static BuiltInCacheMergePolicies |
getDefault()
Gets the definition of the default
CacheMergePolicy . |
Class<? extends CacheMergePolicy> |
getImplementationClass() |
String |
getImplementationClassName()
Gets the name of the implementation class of
CacheMergePolicy . |
CacheMergePolicy |
newInstance()
Create a new instance of
CacheMergePolicy . |
static BuiltInCacheMergePolicies |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BuiltInCacheMergePolicies[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BuiltInCacheMergePolicies PASS_THROUGH
public static final BuiltInCacheMergePolicies PUT_IF_ABSENT
public static final BuiltInCacheMergePolicies HIGHER_HITS
public static final BuiltInCacheMergePolicies LATEST_ACCESS
public static BuiltInCacheMergePolicies[] values()
for (BuiltInCacheMergePolicies c : BuiltInCacheMergePolicies.values()) System.out.println(c);
public static BuiltInCacheMergePolicies valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic Class<? extends CacheMergePolicy> getImplementationClass()
public String getImplementationClassName()
CacheMergePolicy
.CacheMergePolicy
.public CacheMergePolicy newInstance()
CacheMergePolicy
.CacheMergePolicy
public static BuiltInCacheMergePolicies getDefault()
CacheMergePolicy
.CacheMergePolicy
Copyright © 2017 Hazelcast, Inc.. All Rights Reserved.