user2110228
user2110228

Reputation: 91

spring cloud : Eureka handlers

Hi I am trying to call a custom method when a new instance/service is registered to eureka using Spring cloud api. Is there any handlers/interceptors are availble to perform this? On completing the registration it should call the custom method, here i am trying to publish an event to the queue.

Upvotes: 0

Views: 394

Answers (1)

spencergibb
spencergibb

Reputation: 25177

There is an InstanceRegisteredEvent that is published as a Spring ApplicationEvent.

Upvotes: 1

Related Questions