package Ġno . nav . fo . ve ilar bre gist r ering . regist r ering . pub lis ering . scheduler Ċ Ċ import Ġno . nav . common . feature toggle . Un le ash Client Ċ import Ġno . nav . common . job . leader _ election . Leader E lection Client Ċ import Ġno . nav . common . job . leader _ election . Leader E lection HttpClient Ċ import Ġno . nav . fo . ve ilar bre gist r ering . regist r ering . pub lis ering . Pub lis ering Av Events Service Ċ import Ġorg . springframework . context . annotation . Bean Ċ import Ġorg . springframework . context . annotation . Configuration Ċ import Ġorg . springframework . scheduling . annotation . Enable Scheduling Ċ Ċ @ Configuration Ċ @ Enable Scheduling Ċ class ĠPub lis ering Scheduler Config Ġ{ ĊĊĠĠĠ Ġ@ Bean ĊĠĠĠ Ġfun Ġleader E lection Client (): ĠLeader E lection Client Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠLeader E lection HttpClient () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġ@ Bean ĊĠĠĠ Ġfun Ġpub lis ering Av Regist r ering Events Scheduler ( ĊĠĠĠĠĠĠĠĠĠĠĠ Ġpub lis ering Av Events Service : ĠPub lis ering Av Events Service , ĊĠĠĠĠĠĠĠĠĠĠĠ Ġleader E lection Client : ĠLeader E lection Client , ĊĠĠĠĠĠĠĠĠĠĠĠ Ġun le ash Client : ĠUn le ash Client ĊĠĠĠ Ġ): ĠPub lis ering Av Regist r ering Events Scheduler Ġ{ ĊĠĠĠĠĠĠĠ Ġreturn ĠPub lis ering Av Regist r ering Events Scheduler ( ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġpub lis ering Av Events Service , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġleader E lection Client , ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġun le ash Client ) ĊĠĠĠ Ġ} Ċ }