org.neo4j.kernel.ha.cluster
Class DefaultElectionCredentials

java.lang.Object
  extended by org.neo4j.kernel.ha.cluster.DefaultElectionCredentials
All Implemented Interfaces:
Externalizable, Serializable, Comparable, org.neo4j.cluster.protocol.election.ElectionCredentials

public final class DefaultElectionCredentials
extends Object
implements org.neo4j.cluster.protocol.election.ElectionCredentials, Externalizable

See Also:
Serialized Form

Constructor Summary
DefaultElectionCredentials()
           
DefaultElectionCredentials(int serverId, long latestTxId, boolean currentWinner)
           
 
Method Summary
 int compareTo(Object o)
           
 boolean equals(Object obj)
           
 int hashCode()
           
 void readExternal(ObjectInput in)
           
 String toString()
           
 void writeExternal(ObjectOutput out)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultElectionCredentials

public DefaultElectionCredentials()

DefaultElectionCredentials

public DefaultElectionCredentials(int serverId,
                                  long latestTxId,
                                  boolean currentWinner)
Method Detail

compareTo

public int compareTo(Object o)
Specified by:
compareTo in interface Comparable

equals

public boolean equals(Object obj)
Overrides:
equals in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

writeExternal

public void writeExternal(ObjectOutput out)
                   throws IOException
Specified by:
writeExternal in interface Externalizable
Throws:
IOException

readExternal

public void readExternal(ObjectInput in)
                  throws IOException,
                         ClassNotFoundException
Specified by:
readExternal in interface Externalizable
Throws:
IOException
ClassNotFoundException

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2002-2013 The Neo4j Graph Database Project. All Rights Reserved.