You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@zookeeper.apache.org by "Wenjun Ruan (Jira)" <ji...@apache.org> on 2021/09/25 02:48:00 UTC
[jira] [Created] (ZOOKEEPER-4386) Use enum to wrap the election
algorithm type
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)