org.neo4j.kernel.ha.cluster
Class DefaultElectionCredentials
java.lang.Object
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
DefaultElectionCredentials
public DefaultElectionCredentials()
DefaultElectionCredentials
public DefaultElectionCredentials(int serverId,
long latestTxId,
boolean currentWinner)
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.