Enum Class ScopeType

java.lang.Object
java.lang.Enum<ScopeType>
org.springframework.data.gemfire.ScopeType
All Implemented Interfaces:
Serializable, Comparable<ScopeType>, Constable

public enum ScopeType extends Enum<ScopeType>
The ScopeType enum is an enumeration of GemFire Scopes.
Since:
1.6.0
Author:
John Blum
See Also:
  • Enum Constant Details

    • DISTRIBUTED_ACK

      public static final ScopeType DISTRIBUTED_ACK
    • DISTRIBUTED_NO_ACK

      public static final ScopeType DISTRIBUTED_NO_ACK
    • GLOBAL

      public static final ScopeType GLOBAL
    • LOCAL

      public static final ScopeType LOCAL
  • Method Details

    • values

      public static ScopeType[] 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 ScopeType 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
    • getScope

      public static Scope getScope(ScopeType scopeType)
      Null-safe operation to extract the GemFire Scope from the given ScopeType enum value, or null if the provided scopeType is null.
      Parameters:
      scopeType - the ScopeType enumerated value from which to extract the GemFire Scope.
      Returns:
      the paired GemFire Scope from the given ScopeType or null if scopeType is null.
      See Also:
    • valueOf

      public static ScopeType valueOf(Scope scope)
      Returns a ScopeType enumerated value for the given a GemFire Scope.
      Parameters:
      scope - the GemFire Scope used to lookup and match the appropriate ScopeType.
      Returns:
      a ScopeType for the given GemFire Scope or null if no match was found.
      See Also:
    • valueOfIgnoreCase

      public static ScopeType valueOfIgnoreCase(String name)
      Returns a ScopeType enumerated value given the case-insensitive name of the GemFire Scope.
      Parameters:
      name - a String name describing the ScopeType enum value.
      Returns:
      a ScopeType for the given case-insensitive, named GemFire Scope.
      See Also:
    • getScope

      public Scope getScope()
      Gets the matching GemFire Scope for this enumerated value.
      Returns:
      a GemFire Scope for this enumerated value.
      See Also: