public void onPartitionLost(IPartitionLostEvent event) { final PartitionLostEvent partitionLostEvent = new PartitionLostEvent(event.getPartitionId(), event.getLostReplicaIndex(), event.getEventSource()); final EventService eventService = nodeEngine.getEventService(); final Collection<EventRegistration> registrations = eventService .getRegistrations(SERVICE_NAME, PARTITION_LOST_EVENT_TOPIC); eventService.publishEvent(SERVICE_NAME, registrations, partitionLostEvent, event.getPartitionId()); }
public void onPartitionLost(IPartitionLostEvent event) { final PartitionLostEvent partitionLostEvent = new PartitionLostEvent(event.getPartitionId(), event.getLostReplicaIndex(), event.getEventSource()); final EventService eventService = nodeEngine.getEventService(); final Collection<EventRegistration> registrations = eventService .getRegistrations(SERVICE_NAME, PARTITION_LOST_EVENT_TOPIC); eventService.publishEvent(SERVICE_NAME, registrations, partitionLostEvent, event.getPartitionId()); }