|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.resilientedge.jockey.peer.ResponseMarker
Represents a response that is being sent or received.
Field Summary | |
static int |
AWAITING_RESPONSE
Indicates that a request was sent, and no response has been seen yet. |
static int |
HAVE_RESPONSE
This status indicates that a response message has been received and is ready to be processed. |
static int |
RECEIVING_RESPONSE
This status indicates that a response message has been started but is not yet complte. |
Constructor Summary | |
ResponseMarker()
|
Method Summary | |
void |
cancel()
Cancels the current response that is being sent or received. |
PeerMessage |
waitForResponse()
Blocks until the complete response is returned, or until the request times out. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int AWAITING_RESPONSE
public static final int RECEIVING_RESPONSE
public static final int HAVE_RESPONSE
Constructor Detail |
public ResponseMarker()
Method Detail |
public PeerMessage waitForResponse()
public void cancel()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |