org.resilientedge.jockey.peer
Class SendMarker

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

public class SendMarker
extends java.lang.Object

Identifies a message that is currently being sent to another peer.

Version:
$Revision: 1.1.1.1 $
Author:
John Gardner

Field Summary
static int SEND_COMPLETE
          This status indicates that the message has been sent successfully.
static int SENDING
          Indicates that the message is currently being sent.
static int SENT_AWAITING_ACK
          This status indicates that the message has been sent, but not yet acknowledged by the receiver.
 
Constructor Summary
SendMarker()
           
 
Method Summary
 void cancel()
          Cancels the current message that is being sent.
 int getStatus()
          Returns the status of the current message transmission.
 void waitForSend()
          Blocks until the transmission of the message has been completed.
 
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 message is currently being sent.

SENT_AWAITING_ACK

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

SEND_COMPLETE

public static final int SEND_COMPLETE
This status indicates that the message has been sent successfully.
Constructor Detail

SendMarker

public SendMarker()
Method Detail

getStatus

public int getStatus()
Returns the status of the current message transmission.
Returns:
The Status value

waitForSend

public void waitForSend()
Blocks until the transmission of the message has been completed.

cancel

public void cancel()
Cancels the current message that is being sent.


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