com.sleepycat.je.rep.utilint
Enum ServiceDispatcher.Response
java.lang.Object
java.lang.Enum<ServiceDispatcher.Response>
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.
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
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-2010 Oracle. All rights reserved.