public enum Modes extends Enum<Modes>
FILE: The device data is held on disk and loaded into memory when needed. Caching is used to clear out stale items. Lowest memory use and slowest device detection.
MEMORY: The device data is loaded into memory. Offers the fastest device detection in Java managed code, but a slower startup time.
MEMORY_MAPPED: The device data is loaded into memory as a byte array. Java class instances are created when needed and then cleared from the cache.
Objects of this class should not be created directly as they are part of the internal logic.
For more information see: 51Degrees pattern data model.
| Enum Constant and Description |
|---|
FILE
The device data is loaded into memory.
|
MEMORY
he device data is loaded into memory.
|
MEMORY_MAPPED
The device data is loaded into memory as a byte array.
|
| Modifier and Type | Method and Description |
|---|---|
static Modes |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Modes[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Modes FILE
public static final Modes MEMORY
public static final Modes MEMORY_MAPPED
public static Modes[] values()
for (Modes c : Modes.values()) System.out.println(c);
public static Modes 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 nullCopyright © 2017 51Degrees. All rights reserved.