RaftClient.Listener¶
RaftClient.Listener<T> is an abstraction of listeners that can handleCommit and handleLoadSnapshot (among other metadata-related things).
Contract (Subset)¶
handleCommit¶
void handleCommit(
BatchReader<T> reader)
Used when:
SnapshotFileReaderis requested tohandleMetadataBatchKafkaRaftClient.ListenerContextis requested to fireHandleCommit
handleLoadSnapshot¶
void handleLoadSnapshot(
SnapshotReader<T> reader)
Used when:
KafkaRaftClient.ListenerContextis requested to fireHandleSnapshot
Implementations¶
- MetadataLoader
OffsetTrackingListenerQuorumMetaLogListenerReplicatedCounter