Class HeadElectionProposal
java.lang.Object
org.teamapps.universaldb.cluster.message.HeadElectionProposal
- All Implemented Interfaces:
ClusterMessage
public class HeadElectionProposal extends java.lang.Object implements ClusterMessage
-
Constructor Summary
Constructors Constructor Description HeadElectionProposal(byte[] data)HeadElectionProposal(int headId) -
Method Summary
Modifier and Type Method Description byte[]getData()intgetHeadId()MessageTypegetType()Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Constructor Details
-
HeadElectionProposal
public HeadElectionProposal(int headId) -
HeadElectionProposal
public HeadElectionProposal(byte[] data)
-
-
Method Details
-
getHeadId
public int getHeadId() -
getType
- Specified by:
getTypein interfaceClusterMessage
-
getData
public byte[] getData()- Specified by:
getDatain interfaceClusterMessage
-