GridGain™ 3.6.0e
Enterprise Edition

org.gridgain.grid.cache.datastructures
Enum GridCacheQueueType

java.lang.Object
  extended by java.lang.Enum<GridCacheQueueType>
      extended by org.gridgain.grid.cache.datastructures.GridCacheQueueType
All Implemented Interfaces:
Serializable, Comparable<GridCacheQueueType>

public enum GridCacheQueueType
extends Enum<GridCacheQueueType>

Supported distributed cache queue types.

Wiki & Forum:


Wiki
Forum

See Also:
GridCacheQueue
 

Enum Constant Summary
FIFO
          FIFO (first-in-first-out).
LIFO
          LIFO (last-in-first-out).
PRIORITY
          Weighted priority.
 
Method Summary
static GridCacheQueueType fromOrdinal(int ord)
          Efficiently gets enumerated value from its ordinal.
static GridCacheQueueType valueOf(String name)
          Returns the enum constant of this type with the specified name.
static GridCacheQueueType[] 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

FIFO

public static final GridCacheQueueType FIFO
FIFO (first-in-first-out).


LIFO

public static final GridCacheQueueType LIFO
LIFO (last-in-first-out).


PRIORITY

public static final GridCacheQueueType PRIORITY
Weighted priority.

Method Detail

values

public static GridCacheQueueType[] 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 (GridCacheQueueType c : GridCacheQueueType.values())
    System.out.println(c);

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

valueOf

public static GridCacheQueueType 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.)

Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null
Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name

fromOrdinal

@Nullable
public static GridCacheQueueType fromOrdinal(int ord)
Efficiently gets enumerated value from its ordinal.

Parameters:
ord - Ordinal value.
Returns:
Enumerated value or null if ordinal out of range.

GridGain™ 3.6.0e
Enterprise Edition

GridGain - Real Time Big Data
Enterprise Edition, ver. 3.6.0e.13012012
2012 Copyright © GridGain Systems
Follow us:   Follow GridGain on Github Follow GridGain on Facebook Join GridGain User Group Follow GridGain on Twitter Follow GridGain on YouTube