Class KafkaGroupLeaderElector
java.lang.Object
io.confluent.kafka.schemaregistry.leaderelector.kafka.KafkaGroupLeaderElector
- All Implemented Interfaces:
LeaderElector
-
Constructor Summary
ConstructorsConstructorDescriptionKafkaGroupLeaderElector(SchemaRegistryConfig config, SchemaRegistryIdentity myIdentity, SchemaRegistry schemaRegistry) -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()voidinit()voidonAssigned(io.confluent.kafka.schemaregistry.leaderelector.kafka.SchemaRegistryProtocol.Assignment assignment, int generation) voidThis is a no-op during leader election if stickyLeaderElection is enabled as we're not revoking previous leader assignment.
-
Constructor Details
-
KafkaGroupLeaderElector
public KafkaGroupLeaderElector(SchemaRegistryConfig config, SchemaRegistryIdentity myIdentity, SchemaRegistry schemaRegistry) throws SchemaRegistryInitializationException
-
-
Method Details
-
init
- Specified by:
initin interfaceLeaderElector- Throws:
SchemaRegistryTimeoutExceptionSchemaRegistryStoreException
-
close
public void close()- Specified by:
closein interfaceLeaderElector
-
onAssigned
public void onAssigned(io.confluent.kafka.schemaregistry.leaderelector.kafka.SchemaRegistryProtocol.Assignment assignment, int generation) -
onRevoked
public void onRevoked()This is a no-op during leader election if stickyLeaderElection is enabled as we're not revoking previous leader assignment. The expectation is that the sync group response will notify the group members if there's a leadership change.
-