Package com.hazelcast.executor.impl.client

Examples of com.hazelcast.executor.impl.client.PartitionCallableRequest


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


    private <T> Future<T> submitToKeyOwnerInternal(Callable<T> task, Object key, T defaultValue, boolean preventSync) {
        checkIfNotNull(task);
        final String uuid = getUUID();
        final int partitionId = getPartitionId(key);
        final PartitionCallableRequest request = new PartitionCallableRequest(name, uuid, task, partitionId);
        final ICompletableFuture<T> f = invokeFuture(request, partitionId);
        return checkSync(f, uuid, null, partitionId, preventSync, defaultValue);
    }
View Full Code Here

    private <T> void submitToKeyOwnerInternal(Callable<T> task, Object key, ExecutionCallback<T> callback) {
        checkIfNotNull(task);
        final String uuid = getUUID();
        final int partitionId = getPartitionId(key);
        final PartitionCallableRequest request = new PartitionCallableRequest(name, uuid, task, partitionId);
        final ICompletableFuture<T> f = invokeFuture(request, partitionId);
        f.andThen(callback);
    }
View Full Code Here

    private <T> Future<T> submitToRandomInternal(Callable<T> task, T defaultValue, boolean preventSync) {
        checkIfNotNull(task);
        final String uuid = getUUID();
        final int partitionId = randomPartitionId();
        final PartitionCallableRequest request = new PartitionCallableRequest(name, uuid, task, partitionId);
        final ICompletableFuture<T> f = invokeFuture(request, partitionId);
        return checkSync(f, uuid, null, partitionId, preventSync, defaultValue);
    }
View Full Code Here

    private <T> void submitToRandomInternal(Callable<T> task, ExecutionCallback<T> callback) {
        checkIfNotNull(task);
        checkIfNotNull(task);
        final String uuid = getUUID();
        final int partitionId = randomPartitionId();
        final PartitionCallableRequest request = new PartitionCallableRequest(name, uuid, task, partitionId);
        final ICompletableFuture<T> f = invokeFuture(request, partitionId);
        f.andThen(callback);
    }
View Full Code Here

TOP

Related Classes of com.hazelcast.executor.impl.client.PartitionCallableRequest

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.