public enum EvictionPolicy extends Enum<EvictionPolicy>
| Modifier and Type | Class and Description |
|---|---|
static class |
EvictionPolicy.FIFOComparator |
static class |
EvictionPolicy.LFUComparator |
static class |
EvictionPolicy.LRUComparator |
| Modifier and Type | Field and Description |
|---|---|
private Comparator<CacheRecord> |
comparator |
| Modifier and Type | Method and Description |
|---|---|
Comparator<CacheRecord> |
getComparator() |
static EvictionPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static EvictionPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final EvictionPolicy LFU
public static final EvictionPolicy LRU
public static final EvictionPolicy FIFO
private final Comparator<CacheRecord> comparator
public static EvictionPolicy[] values()
for (EvictionPolicy c : EvictionPolicy.values()) System.out.println(c);
public static EvictionPolicy 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 Comparator<CacheRecord> getComparator()
Copyright © 2015 Apache NiFi Project. All rights reserved.