/** * Acquire the leadership * @param id identify of the current participant * @param leaderPath the leader node path * @param listener the leader listener * @return the leadership */ public Leader acquireLeader(String id, String leaderPath, LeaderListener listener){ return new Leader(client, id, leaderPath, listener); }