org.resilientedge.jockey.peerbridge
Class PBSendMarker

java.lang.Object
  |
  +--org.resilientedge.jockey.peerbridge.PBSendMarker
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
PBResponseMarker

public class PBSendMarker
extends java.lang.Object
implements java.io.Serializable

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

Version:
$Revision: 1.1.1.1 $
Author:
John Gardner
See Also:
Serialized Form

Field Summary
static int SEND_COMPLETE
          Represents a send complete status
static int SENDING
          Represents a send in progress status
static int SENT_AWAITING_ACK
          Represents a send complete, awaiting ack status
 
Constructor Summary
PBSendMarker(PBMessage message)
          Construct a fully formed send marker.
 
Method Summary
 long getMarkerId()
          Gets the unique marker ID
 PBMessage getSendMessage()
          Gets the message that is being sent
 boolean isSendComplete()
          Gets the send complete flag
 void setMarkerId(long newValue)
          Sets the unique marker ID
 void setSendComplete(boolean newValue)
          Sets the send complete flag
 void setSendMessage(PBMessage message)
          Sets the message that is being sent
 
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
Represents a send in progress status

SENT_AWAITING_ACK

public static final int SENT_AWAITING_ACK
Represents a send complete, awaiting ack status

SEND_COMPLETE

public static final int SEND_COMPLETE
Represents a send complete status
Constructor Detail

PBSendMarker

public PBSendMarker(PBMessage message)
Construct a fully formed send marker.
Parameters:
message - the message to be sent
timeout - the timeout value (in sec) for the request
Method Detail

setMarkerId

public void setMarkerId(long newValue)
Sets the unique marker ID
Parameters:
newValue - The new MarkerId value

setSendComplete

public void setSendComplete(boolean newValue)
Sets the send complete flag
Parameters:
newValue - The new SendComplete value

getMarkerId

public long getMarkerId()
Gets the unique marker ID
Returns:
The MarkerId value

isSendComplete

public boolean isSendComplete()
Gets the send complete flag
Returns:
The SendComplete value

setSendMessage

public void setSendMessage(PBMessage message)
Sets the message that is being sent
Parameters:
message - the message being sent

getSendMessage

public PBMessage getSendMessage()
Gets the message that is being sent
Returns:
the message being sent


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