ostore.util
Class NonceMsg

java.lang.Object
  |
  +--ostore.network.NetworkMessage
        |
        +--ostore.util.NonceAckMsg
              |
              +--ostore.util.NonceMsg
All Implemented Interfaces:
Cloneable, QueueElementIF, QuickSerializable

public abstract class NonceMsg
extends NonceAckMsg
implements QuickSerializable


Field Summary
 
Fields inherited from class ostore.util.NonceAckMsg
stage_id
 
Fields inherited from class ostore.network.NetworkMessage
comp_q, est_rtt_ms, inbound, peer, sender, tries, user_data, wait_ms
 
Constructor Summary
NonceMsg(InputBuffer buffer)
           
NonceMsg(NodeId peer)
           
 
Method Summary
 int getNonce()
           
 void serialize(OutputBuffer buffer)
          Add the object to the buffer.
 void setNonce(int nonce)
           
 String toString()
           
 
Methods inherited from class ostore.util.NonceAckMsg
addNonceAck, clone, getNonceAcks, getStageId, setStageId
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NonceMsg

public NonceMsg(NodeId peer)

NonceMsg

public NonceMsg(InputBuffer buffer)
         throws QSException
Method Detail

serialize

public void serialize(OutputBuffer buffer)
Description copied from interface: QuickSerializable
Add the object to the buffer.

Specified by:
serialize in interface QuickSerializable
Overrides:
serialize in class NonceAckMsg
Parameters:
buffer - the output buffer to add the object to

getNonce

public int getNonce()

setNonce

public void setNonce(int nonce)

toString

public String toString()
Overrides:
toString in class NetworkMessage