@ EventListener ( HeartbeatEvent . class ) public void heartbeat ( final HeartbeatEvent event ) { if ( this . monitor . update ( event . getValue ( ) ) ) { for ( final DiscoveryClientNameResolver discoveryClientNameResolver : this . discoveryClientNameResolvers ) { discoveryClientNameResolver . refresh ( ) ; } } }
Triggers a refresh of the registered name resolvers .