public class BeaconCacheConfiguration
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static long |
DEFAULT_LOWER_MEMORY_BOUNDARY_IN_BYTES |
static long |
DEFAULT_MAX_RECORD_AGE_IN_MILLIS
The default
BeaconCacheConfiguration when user does not override it. |
static long |
DEFAULT_UPPER_MEMORY_BOUNDARY_IN_BYTES |
| Constructor and Description |
|---|
BeaconCacheConfiguration(long maxRecordAge,
long cacheSizeLowerBound,
long cacheSizeUpperBound)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
long |
getCacheSizeLowerBound()
Get lower memory limit for cache.
|
long |
getCacheSizeUpperBound()
Get upper memory limit for cache.
|
long |
getMaxRecordAge()
Get maximum record age.
|
public static final long DEFAULT_MAX_RECORD_AGE_IN_MILLIS
BeaconCacheConfiguration when user does not override it.
Default settings allow beacons which are max 2 hours old and unbounded memory limits.public static final long DEFAULT_UPPER_MEMORY_BOUNDARY_IN_BYTES
public static final long DEFAULT_LOWER_MEMORY_BOUNDARY_IN_BYTES
public BeaconCacheConfiguration(long maxRecordAge,
long cacheSizeLowerBound,
long cacheSizeUpperBound)
maxRecordAge - Maximum record agecacheSizeLowerBound - lower memory limit for cachecacheSizeUpperBound - upper memory limit for cache