com.sleepycat.je.rep.utilint
Enum ServiceDispatcher.Response

java.lang.Object
  extended by java.lang.Enum<ServiceDispatcher.Response>
      extended by com.sleepycat.je.rep.utilint.ServiceDispatcher.Response
All Implemented Interfaces:
Serializable, Comparable<ServiceDispatcher.Response>
Enclosing class:
ServiceDispatcher

public static enum ServiceDispatcher.Response
extends Enum<ServiceDispatcher.Response>

The response to a service request. Do not rearrange the order of the enumerators, since their ordinal values are currently used in messages.


Enum Constant Summary
BUSY
           
FORMAT_ERROR
           
OK
           
UNKNOWN_SERVICE
           
 
Method Summary
(package private)  ByteBuffer byteBuffer()
           
(package private) static ServiceDispatcher.Response get(int ordinal)
           
static ServiceDispatcher.Response valueOf(String name)
          Returns the enum constant of this type with the specified name.
static ServiceDispatcher.Response[] 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

OK

public static final ServiceDispatcher.Response OK

BUSY

public static final ServiceDispatcher.Response BUSY

FORMAT_ERROR

public static final ServiceDispatcher.Response FORMAT_ERROR

UNKNOWN_SERVICE

public static final ServiceDispatcher.Response UNKNOWN_SERVICE
Method Detail

values

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

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

valueOf

public static ServiceDispatcher.Response 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

byteBuffer

ByteBuffer byteBuffer()

get

static ServiceDispatcher.Response get(int ordinal)


Copyright (c) 2004-2012 Oracle. All rights reserved.