Package com.hazelcast.executor.client

Examples of com.hazelcast.executor.client.CancellationRequest


            setDone();
        }
    }

    private Future invokeCancelRequest(boolean mayInterruptIfRunning) {
        CancellationRequest request;
        Address address = target;
        if (target != null) {
            request = new CancellationRequest(uuid, target, mayInterruptIfRunning);
        } else {
            final ClientPartitionService partitionService = context.getPartitionService();
            address =  partitionService.getPartitionOwner(partitionId);
            request = new CancellationRequest(uuid, partitionId, mayInterruptIfRunning);
        }
        try {
            return context.getInvocationService().invokeOnTarget(request, address);
        } catch (Exception e) {
            throw rethrow(e);
View Full Code Here


            public Portable create(int classId) {
                switch (classId) {
                    case IS_SHUTDOWN_REQUEST:
                        return new IsShutdownRequest();
                    case CANCELLATION_REQUEST:
                        return new CancellationRequest();
                    case TARGET_CALLABLE_REQUEST:
                        return new TargetCallableRequest();
                    case PARTITION_CALLABLE_REQUEST:
                        return new PartitionCallableRequest();
                    default:
View Full Code Here

            public Portable create(int classId) {
                switch (classId) {
                    case IS_SHUTDOWN_REQUEST:
                        return new IsShutdownRequest();
                    case CANCELLATION_REQUEST:
                        return new CancellationRequest();
                    case TARGET_CALLABLE_REQUEST:
                        return new TargetCallableRequest();
                    case PARTITION_CALLABLE_REQUEST:
                        return new PartitionCallableRequest();
                    case SHUTDOWN_REQUEST:
View Full Code Here

TOP

Related Classes of com.hazelcast.executor.client.CancellationRequest

Copyright © 2018 www.massapicom. 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.