Enum Class RegistrationBehavior

java.lang.Object
java.lang.Enum<RegistrationBehavior>
com.tangosol.util.RegistrationBehavior
All Implemented Interfaces:
Serializable, Comparable<RegistrationBehavior>, Constable

public enum RegistrationBehavior extends Enum<RegistrationBehavior>
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
  • Enum Constant Details

    • IGNORE

      public static final RegistrationBehavior 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

      public static final RegistrationBehavior REPLACE
      Specifies that registration should replace an existing identified artifact with that of which was specified.
    • FAIL

      public static final RegistrationBehavior FAIL
      Specifies that registration should fail (by raising an exception) if the identified artifact is already registered.
    • ALWAYS

      public static final RegistrationBehavior 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

      public static RegistrationBehavior[] 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

      public static RegistrationBehavior valueOf(String name)
      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 name
      NullPointerException - if the argument is null