Description
Implement the following API:
interface RaftClient<T> { ListenerContext register(Listener<T>); void unregister(ListenerContext); } interface ListenerContext { } interface Listener<T> { void handleCommit(ListenerContext, BatchReader<T>); void handleSnapshot(ListenerContext, SnapshotReader<T>); void handleLeaderChange(ListenerContext, LeaderAndEpoch); }
Attachments
Issue Links
- links to