Jose Armando Garcia Sancio created KAFKA-13113:
--------------------------------------------------

             Summary: Add unregister support to the RaftClient.
                 Key: KAFKA-13113
                 URL: https://issues.apache.org/jira/browse/KAFKA-13113
             Project: Kafka
          Issue Type: Sub-task
          Components: kraft
            Reporter: Jose Armando Garcia Sancio
            Assignee: Jose Armando Garcia Sancio
             Fix For: 3.0.0


Implement the following API:
{code:java}
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);
} {code}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to