Package com.hazelcast.executor.client

Examples of com.hazelcast.executor.client.TargetCallableRequest


                    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:
                        return null;
                }
View Full Code Here


    }

    private <T> Future<T> _submitToTarget(Callable<T> task, final Address address, T defaultValue, boolean preventSync) {
        checkIfNotNull(task);
        final String uuid = getUUID();
        final TargetCallableRequest request = new TargetCallableRequest(name, uuid, task, address);
        ICompletableFuture<T> f = invokeFuture(request);
        return checkSync(f, uuid, address, -1, preventSync, defaultValue);
    }
View Full Code Here

        return checkSync(f, uuid, address, -1, preventSync, defaultValue);
    }

    private <T> void _submitToTarget(Callable<T> task, final Address address, final ExecutionCallback<T> callback) {
        checkIfNotNull(task);
        final TargetCallableRequest request = new TargetCallableRequest(name, null, task, address);
        ICompletableFuture<T> f = invokeFuture(request);
        f.andThen(callback);
    }
View Full Code Here

                    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:
                        return new ShutdownRequest();
                    default:
View Full Code Here

    }

    private <T> Future<T> submitToTargetInternal(Callable<T> task, final Address address, T defaultValue, boolean preventSync) {
        checkIfNotNull(task);
        final String uuid = getUUID();
        final TargetCallableRequest request = new TargetCallableRequest(name, uuid, task, address);
        ICompletableFuture<T> f = invokeFuture(request);
        return checkSync(f, uuid, address, -1, preventSync, defaultValue);
    }
View Full Code Here

        return checkSync(f, uuid, address, -1, preventSync, defaultValue);
    }

    private <T> void submitToTargetInternal(Callable<T> task, final Address address, final ExecutionCallback<T> callback) {
        checkIfNotNull(task);
        final TargetCallableRequest request = new TargetCallableRequest(name, null, task, address);
        ICompletableFuture<T> f = invokeFuture(request);
        f.andThen(callback);
    }
View Full Code Here

TOP

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

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.