public static enum LynxModule.BulkCachingMode extends java.lang.Enum<LynxModule.BulkCachingMode>
LynxModule.BulkData
Enum Constant and Description |
---|
AUTO
Same as
MANUAL except the cache is also cleared automatically when the same
command is issued twice. |
MANUAL
Replace eligible commands with the results of a cached bulk read.
|
OFF
Never replace commands with cached bulk read results.
|
Modifier and Type | Method and Description |
---|---|
static LynxModule.BulkCachingMode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static LynxModule.BulkCachingMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LynxModule.BulkCachingMode OFF
public static final LynxModule.BulkCachingMode MANUAL
LynxModule.clearBulkCache()
before another bulk read is issued. This
should only be used by advanced users. A common pattern is placing a single
LynxModule.clearBulkCache()
call at the start of every hardware loop.public static final LynxModule.BulkCachingMode AUTO
MANUAL
except the cache is also cleared automatically when the same
command is issued twice. This mode is intended for beginning users that want to benefit
from bulk reads without explicit cache-handling code.public static LynxModule.BulkCachingMode[] values()
for (LynxModule.BulkCachingMode c : LynxModule.BulkCachingMode.values()) System.out.println(c);
public static LynxModule.BulkCachingMode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null