Wenjun Ruan created ZOOKEEPER-4386:
--------------------------------------
Summary: Use enum to wrap the election algorithm type
Key: ZOOKEEPER-4386
URL: https://issues.apache.org/jira/browse/ZOOKEEPER-4386
Project: ZooKeeper
Issue Type: Improvement
Components: leaderElection
Reporter: Wenjun Ruan
Currently there are use 1,2,3 to represent the three kinds of
ElectionAlgorithm, this may leave people wondering what the number means. It's
recommended to use enum to wrap the number.
{code:java}
protected int electionAlg = 3;
{code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)