com.sleepycat.je.rep.elections
Class Protocol.Reject

java.lang.Object
  extended by com.sleepycat.je.rep.impl.TextProtocol.Message
      extended by com.sleepycat.je.rep.impl.TextProtocol.ResponseMessage
          extended by com.sleepycat.je.rep.elections.Protocol.Reject
All Implemented Interfaces:
TextProtocol.WireFormatable
Enclosing class:
Protocol

public class Protocol.Reject
extends TextProtocol.ResponseMessage

Reject response to a message.


Constructor Summary
Protocol.Reject(Proposer.Proposal higherProposal)
           
Protocol.Reject(String responseLine, String[] tokens)
           
 
Method Summary
 boolean equals(Object obj)
           
(package private)  Proposer.Proposal getHigherProposal()
           
 TextProtocol.MessageOp getOp()
           
 int hashCode()
           
 String wireFormat()
           
 
Methods inherited from class com.sleepycat.je.rep.impl.TextProtocol.ResponseMessage
wireFormatPrefix
 
Methods inherited from class com.sleepycat.je.rep.impl.TextProtocol.Message
getCurrentTokenPosition, getMessagePrefix, getProtocol, getSenderId, nextPayloadToken
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Protocol.Reject

Protocol.Reject(Proposer.Proposal higherProposal)

Protocol.Reject

public Protocol.Reject(String responseLine,
                       String[] tokens)
                throws TextProtocol.InvalidMessageException
Throws:
TextProtocol.InvalidMessageException
Method Detail

hashCode

public int hashCode()
Overrides:
hashCode in class TextProtocol.ResponseMessage

equals

public boolean equals(Object obj)
Overrides:
equals in class TextProtocol.ResponseMessage

getOp

public TextProtocol.MessageOp getOp()
Specified by:
getOp in class TextProtocol.Message

wireFormat

public String wireFormat()

getHigherProposal

Proposer.Proposal getHigherProposal()


Copyright (c) 2004-2010 Oracle. All rights reserved.