Reputation: 91
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
Reputation: 25177
There is an InstanceRegisteredEvent
that is published as a Spring ApplicationEvent
.
Upvotes: 1