public static enum ReadThroughCache.Synchronization extends Enum<ReadThroughCache.Synchronization>
Enum Constant and Description |
---|
BY_KEY
Per-key synchronization: each retrieval request establishes a lock that is cleared
when the retrieval completes.
|
NONE
No synchronization: concurrent requests for the same key will invoke concurrent
retrievals.
|
SINGLE_THREADED
Single-threaded: only one invocation of the retriever will take place at a time; all
subsequent requests will block until it completes.
|
Modifier and Type | Method and Description |
---|---|
static ReadThroughCache.Synchronization |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ReadThroughCache.Synchronization[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ReadThroughCache.Synchronization NONE
public static final ReadThroughCache.Synchronization BY_KEY
public static final ReadThroughCache.Synchronization SINGLE_THREADED
public static ReadThroughCache.Synchronization[] values()
for (ReadThroughCache.Synchronization c : ReadThroughCache.Synchronization.values()) System.out.println(c);
public static ReadThroughCache.Synchronization 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 null