Package com.hazelcast.client.spi

Examples of com.hazelcast.client.spi.ClientPartitionService


        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) {
View Full Code Here


        }
        return m.getAddress();
    }

    private int getPartitionId(Object key) {
        final ClientPartitionService partitionService = getContext().getPartitionService();
        return partitionService.getPartitionId(key);
    }
View Full Code Here

        final ClientPartitionService partitionService = getContext().getPartitionService();
        return partitionService.getPartitionId(key);
    }

    private int randomPartitionId() {
        final ClientPartitionService partitionService = getContext().getPartitionService();
        return random.nextInt(partitionService.getPartitionCount());
    }
View Full Code Here

        final ClientPartitionService partitionService = getContext().getPartitionService();
        return random.nextInt(partitionService.getPartitionCount());
    }

    private Address getPartitionOwner(int partitionId) {
        final ClientPartitionService partitionService = getContext().getPartitionService();
        return partitionService.getPartitionOwner(partitionId);
    }
View Full Code Here

        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) {
View Full Code Here

        }
        return m.getAddress();
    }

    private int getPartitionId(Object key) {
        final ClientPartitionService partitionService = getContext().getPartitionService();
        return partitionService.getPartitionId(key);
    }
View Full Code Here

        final ClientPartitionService partitionService = getContext().getPartitionService();
        return partitionService.getPartitionId(key);
    }

    private int randomPartitionId() {
        final ClientPartitionService partitionService = getContext().getPartitionService();
        return random.nextInt(partitionService.getPartitionCount());
    }
View Full Code Here

        final ClientPartitionService partitionService = getContext().getPartitionService();
        return random.nextInt(partitionService.getPartitionCount());
    }

    private Address getPartitionOwner(int partitionId) {
        final ClientPartitionService partitionService = getContext().getPartitionService();
        return partitionService.getPartitionOwner(partitionId);
    }
View Full Code Here

        }
        return m.getAddress();
    }

    private int getPartitionId(Object key) {
        final ClientPartitionService partitionService = getContext().getPartitionService();
        return partitionService.getPartitionId(key);
    }
View Full Code Here

        final ClientPartitionService partitionService = getContext().getPartitionService();
        return partitionService.getPartitionId(key);
    }

    private int randomPartitionId() {
        final ClientPartitionService partitionService = getContext().getPartitionService();
        return random.nextInt(partitionService.getPartitionCount());
    }
View Full Code Here

TOP

Related Classes of com.hazelcast.client.spi.ClientPartitionService

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.