|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<LnkRequest.State>
com.neeve.link.LnkRequest.State
public static enum LnkRequest.State
Enumerates the different request states
Enum Constant Summary | |
---|---|
ACTIVE
Indicates that a request object is active and is being used in a request-reply exchange operation. |
|
COMPLETE
Indicates that the request-reply exchange that a request object was involved in has completed. |
|
CREATED
Indicates that a request object has just been created but not initialized. |
|
INITIALIZED
Indicates that a request object has been initialized. |
Method Summary | |
---|---|
static LnkRequest.State |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static LnkRequest.State[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final LnkRequest.State CREATED
public static final LnkRequest.State INITIALIZED
LnkRequest.init(com.neeve.pkt.PktPacket)
. The request object needs to be
in this state before it is passed to the LnkSender.sendSync(com.neeve.link.LnkRequest, int)
or
the LnkSender.sendPipelined(com.neeve.link.LnkRequest, com.neeve.link.ILnkPeerEndpoint.FlushContext, int)
methods.
public static final LnkRequest.State ACTIVE
LnkSender.sendSync(com.neeve.link.LnkRequest, int)
or LnkSender.sendPipelined(com.neeve.link.LnkRequest, com.neeve.link.ILnkPeerEndpoint.FlushContext, int)
and remains in this state until the request-reply exchange that it
is involved in completes. A request object's state cannot be altered by
a user while in this state. The only transition from this state is to
COMPLETE
and this is done internally by the link sender when
the request-reply exchange that it is involved in completes.
public static final LnkRequest.State COMPLETE
Method Detail |
---|
public static LnkRequest.State[] values()
for (LnkRequest.State c : LnkRequest.State.values()) System.out.println(c);
public static LnkRequest.State valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |