Closed ghost closed 10 years ago
Sounds good! Also I think we need a callback like void exit()
, I've added REMOVE request to zabkv, and I feel we need a way to tell the application it's removed. One way is once clusterChange callback is called we check the cluster members of new configuration, and if it's not included in cluster configuration, then it should exit. But I feel it's better to add a separate callback.
it seems a bit asymmetric to have removed() callback since we don't have joined() callback, but i could go either way.
Right now we call clusterChange and leading/following callbacks separately. Maybe it's cleaner to combine these callbacks: