Package com.hazelcast.map.operation

Examples of com.hazelcast.map.operation.EvictOperation


        return key;
    }

    @Override
    protected Operation prepareOperation() {
        EvictOperation operation = new EvictOperation(name, key, false);
        operation.setThreadId(threadId);
        return operation;
    }
View Full Code Here


        for (ScheduledEntry<Data, Object> entry : entries) {
            Data key = entry.getKey();
            int partitionId = nodeEngine.getPartitionService().getPartitionId(key);
                // execute eviction if the node is owner of the key (it can be backup)
            if (nodeEngine.getThisAddress().equals(nodeEngine.getPartitionService().getPartitionOwner(partitionId))) {
                Operation operation = new EvictOperation(mapName, key, true);
                try {
                    Future f = nodeEngine.getOperationService().invokeOnPartition(SERVICE_NAME, operation, partitionId);
                    futures.add(f);
                } catch (Throwable t) {
                    logger.warning(t);
View Full Code Here

        invokeOperation(key, operation);
        invalidateNearCache(key);
    }

    protected boolean evictInternal(final Data key) {
        EvictOperation operation = new EvictOperation(name, key, false);
        final boolean evictSuccess = (Boolean) invokeOperation(key, operation);
        invalidateNearCache(key);
        return evictSuccess;
    }
View Full Code Here

        return key;
    }

    @Override
    protected Operation prepareOperation() {
        EvictOperation operation = new EvictOperation(name, key, false);
        operation.setThreadId(threadId);
        return operation;
    }
View Full Code Here

TOP

Related Classes of com.hazelcast.map.operation.EvictOperation

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.