org.resilientedge.jockey.peer
Class ResponseMarker

java.lang.Object
  |
  +--org.resilientedge.jockey.peer.ResponseMarker

public class ResponseMarker
extends java.lang.Object

Represents a response that is being sent or received.

Version:
$Revision: 1.1.1.1 $
Author:
John Gardner

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

AWAITING_RESPONSE

public static final int AWAITING_RESPONSE
Indicates that a request was sent, and no response has been seen yet.

RECEIVING_RESPONSE

public static final int RECEIVING_RESPONSE
This status indicates that a response message has been started but is not yet complte.

HAVE_RESPONSE

public static final int HAVE_RESPONSE
This status indicates that a response message has been received and is ready to be processed.
Constructor Detail

ResponseMarker

public ResponseMarker()
Method Detail

waitForResponse

public PeerMessage waitForResponse()
Blocks until the complete response is returned, or until the request times out.
Returns:
Description of the Returned Value

cancel

public void cancel()
Cancels the current response that is being sent or received. This may be used if the message is too large or a duplicate.


Copyright © 2001 Resilient Edge, Inc. All Rights Reserved.