com.sleepycat.je.rep.elections
Class Protocol.Accepted
java.lang.Object
com.sleepycat.je.rep.impl.TextProtocol.Message
com.sleepycat.je.rep.impl.TextProtocol.ResponseMessage
com.sleepycat.je.rep.elections.Protocol.Accepted
- All Implemented Interfaces:
- TextProtocol.WireFormatable
- Direct Known Subclasses:
- Protocol.MasterQueryResponse
- Enclosing class:
- Protocol
public class Protocol.Accepted
- extends TextProtocol.ResponseMessage
Response to a successful Accept message.
Protocol.Accepted
Protocol.Accepted(Proposer.Proposal proposal,
Protocol.Value value)
Protocol.Accepted
public Protocol.Accepted(String responseLine,
String[] tokens)
throws TextProtocol.InvalidMessageException
- Throws:
TextProtocol.InvalidMessageException
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()
getValue
public Protocol.Value getValue()
getProposal
public Proposer.Proposal getProposal()
Copyright (c) 2004-2010 Oracle. All rights reserved.