org.resilientedge.jockey.service
Class ServiceResponseMarker

java.lang.Object
  |
  +--org.resilientedge.jockey.service.ServiceResponseMarker

public class ServiceResponseMarker
extends java.lang.Object

Represents a background service invocation and its current status.

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.
static int SEND_COMPLETE
          This status indicates that the request has been sent successfully.
static int SENDING
          Indicates that the request is currently being sent.
static int SENT_AWAITING_ACK
          This status indicates that the request has been sent, but not yet acknowledged by the receiver.
 
Constructor Summary
ServiceResponseMarker()
           
 
Method Summary
 void cancel()
          Cancels the transmission of a service invocation.
 boolean isReady()
          Gets the response ready flag
 void setReady(boolean newValue)
          Sets the response ready flag
 void waitForResponse()
          Blocks until the response to complete.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SENDING

public static final int SENDING
Indicates that the request is currently being sent.

SENT_AWAITING_ACK

public static final int SENT_AWAITING_ACK
This status indicates that the request has been sent, but not yet acknowledged by the receiver.

SEND_COMPLETE

public static final int SEND_COMPLETE
This status indicates that the request has been sent successfully.

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

ServiceResponseMarker

public ServiceResponseMarker()
Method Detail

setReady

public void setReady(boolean newValue)
Sets the response ready flag
Parameters:
newValue - The new Ready value

isReady

public boolean isReady()
Gets the response ready flag
Returns:
The Ready value

waitForResponse

public void waitForResponse()
Blocks until the response to complete.

cancel

public void cancel()
Cancels the transmission of a service invocation.


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