public class KafkaGroupLeaderElector extends Object implements LeaderElector
| Constructor and Description |
|---|
KafkaGroupLeaderElector(SchemaRegistryConfig config,
SchemaRegistryIdentity myIdentity,
KafkaSchemaRegistry schemaRegistry) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
void |
init() |
void |
onAssigned(SchemaRegistryProtocol.Assignment assignment,
int generation)
Invoked when a new assignment is created by joining the schema registry group.
|
void |
onRevoked()
This is a no-op during leader election if stickyLeaderElection is enabled as we're not
revoking previous leader assignment.
|
public KafkaGroupLeaderElector(SchemaRegistryConfig config, SchemaRegistryIdentity myIdentity, KafkaSchemaRegistry schemaRegistry) throws SchemaRegistryInitializationException
public void init()
throws SchemaRegistryTimeoutException,
SchemaRegistryStoreException
init in interface LeaderElectorSchemaRegistryTimeoutExceptionSchemaRegistryStoreExceptionpublic void close()
close in interface LeaderElectorpublic void onAssigned(SchemaRegistryProtocol.Assignment assignment, int generation)
public void onRevoked()
Copyright © 2026 Confluent, Inc.. All rights reserved.