org.infinispan.distribution
Enum DataLocality

java.lang.Object
  extended by java.lang.Enum<DataLocality>
      extended by org.infinispan.distribution.DataLocality
All Implemented Interfaces:
Serializable, Comparable<DataLocality>

public enum DataLocality
extends Enum<DataLocality>

Used to determine whether a key is mapped to a local node. Uncertainty indicates a rehash is in progress and the locality of key in question may be in flux.

Since:
4.2.1
Author:
Manik Surtani, Mircea Markus

Enum Constant Summary
LOCAL
           
LOCAL_UNCERTAIN
           
NOT_LOCAL
           
NOT_LOCAL_UNCERTAIN
           
 
Method Summary
 boolean isLocal()
           
 boolean isUncertain()
           
static DataLocality valueOf(String name)
          Returns the enum constant of this type with the specified name.
static DataLocality[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

LOCAL

public static final DataLocality LOCAL

NOT_LOCAL

public static final DataLocality NOT_LOCAL

LOCAL_UNCERTAIN

public static final DataLocality LOCAL_UNCERTAIN

NOT_LOCAL_UNCERTAIN

public static final DataLocality NOT_LOCAL_UNCERTAIN
Method Detail

values

public static DataLocality[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (DataLocality c : DataLocality.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static DataLocality valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
NullPointerException - if the argument is null

isLocal

public boolean isLocal()

isUncertain

public boolean isUncertain()

-->

Copyright © 2013 JBoss, a division of Red Hat. All Rights Reserved.