Package com.hazelcast.client.spi.impl

Examples of com.hazelcast.client.spi.impl.ClientInvocationServiceImpl.invokeOnRandomTarget()


        final Future future;
        try {
            final ClientInvocationServiceImpl invocationService =getClientInvocationService(context);

            if (key == null) {
                future = invocationService.invokeOnRandomTarget(request, handler);
            } else {
                future = invocationService.invokeOnKeyOwner(request, key, handler);
            }
            String registrationId = context.getSerializationService().toObject(future.get());
            invocationService.registerListener(registrationId, request.getCallId());
View Full Code Here


            registrationId = invocationService.deRegisterListener(registrationId);
            if (registrationId == null) {
                return false;
            }
            request.setRegistrationId(registrationId);
            final Future<Boolean> future = invocationService.invokeOnRandomTarget(request);
            return (Boolean) context.getSerializationService().toObject(future.get());
        } catch (Exception e) {
            throw ExceptionUtil.rethrow(e);
        }
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.