Package com.tangosol.util
Enum Class RegistrationBehavior
- All Implemented Interfaces:
Serializable
,Comparable<RegistrationBehavior>
,Constable
A RegistrationBehavior is used by numerous registries for the
purpose of specifying the required behavior when registering an artifact.
- Since:
- Coherence 12.1.2
- Author:
- bo 2012.10
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionSpecifies that registration must always occur.Specifies that registration should fail (by raising an exception) if the identified artifact is already registered.Specifies that registration should be ignored and skipped (without raising an error or exception) if the artifact to be registered is already known.Specifies that registration should replace an existing identified artifact with that of which was specified. -
Method Summary
Modifier and TypeMethodDescriptionstatic RegistrationBehavior
Returns the enum constant of this class with the specified name.static RegistrationBehavior[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
IGNORE
Specifies that registration should be ignored and skipped (without raising an error or exception) if the artifact to be registered is already known. -
REPLACE
Specifies that registration should replace an existing identified artifact with that of which was specified. -
FAIL
Specifies that registration should fail (by raising an exception) if the identified artifact is already registered. -
ALWAYS
Specifies that registration must always occur. If an identifiable artifact is already registered, a new identity is generated (based on the provided identity) and the specified artifact is registered.
-
-
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
-