Enum Class CDORevisionManager.Request.Config.LookupMode
java.lang.Object
java.lang.Enum<CDORevisionManager.Request.Config.LookupMode>
org.eclipse.emf.cdo.common.revision.CDORevisionManager.Request.Config.LookupMode
- All Implemented Interfaces:
Serializable,Comparable<CDORevisionManager.Request.Config.LookupMode>,Constable
- Enclosing class:
CDORevisionManager.Request.Config
public static enum CDORevisionManager.Request.Config.LookupMode
extends Enum<CDORevisionManager.Request.Config.LookupMode>
Controls whether a revision manager consults its cache before invoking its loader. A loader receives this value
but does not interpret it because source selection has already been made by the manager.
- Since:
- 4.37
- Author:
- Eike Stepper
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionConsults the revision cache and returnsnullon a cache miss without invoking the loader.Consults the cache first and invokes the loader only after a cache miss.Bypasses the cache as a lookup source and invokes the loader directly. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CACHE_ONLY
Consults the revision cache and returnsnullon a cache miss without invoking the loader. -
LOADER_ONLY
Bypasses the cache as a lookup source and invokes the loader directly. A normally loaded result may still be cached. -
CACHE_THEN_LOADER
Consults the cache first and invokes the loader only after a cache miss.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-