@Value.Immutable
public interface CachePolicy
Cache (or CheckedCache).| Modifier and Type | Field and Description |
|---|---|
static long |
UNLIMITED_ENTRIES |
| Modifier and Type | Method and Description |
|---|---|
default long |
maxEntries()
Specifies the maximum number of entries the cache may contain.
|
default boolean |
statsEnabled()
Whether this cache has it statics enabled.
|
static final long UNLIMITED_ENTRIES
@Value.Default default boolean statsEnabled()
CacheStats are obtained via CacheManager.getStats()@Value.Default default long maxEntries()
The default is UNLIMITED_ENTRIES.
Users are encourage to set the maximum entries policy suitable to their actual usage of the cache; either programmatically in code, or by runtime configuration.
Copyright © 2019 OpenDaylight. All rights reserved.