use of com.hazelcast.spi.impl.eventservice.impl.operations.RegistrationOperation in project hazelcast by hazelcast.
the class EventServiceImpl method invokeRegistrationOnOtherNodes.
private void invokeRegistrationOnOtherNodes(String serviceName, Registration reg) {
OperationService operationService = nodeEngine.getOperationService();
Collection<Member> members = nodeEngine.getClusterService().getMembers();
Collection<Future> calls = new ArrayList<Future>(members.size());
for (Member member : members) {
if (!member.localMember()) {
RegistrationOperation operation = new RegistrationOperation(reg);
Future f = operationService.invokeOnTarget(serviceName, operation, member.getAddress());
calls.add(f);
}
}
waitWithDeadline(calls, REGISTRATION_TIMEOUT_SECONDS, TimeUnit.SECONDS, registrationExceptionHandler);
}
Aggregations