class EurekaInstanceCanceledListener {

    @EventListener
    public void listen(EurekaInstanceCanceledEvent event) {
        gatewayNotifier.serviceCancelledRegistration(EurekaUtils.getServiceIdFromInstanceId(event.getServerId()));
    }

}