Examples of EvictOperation


Examples of com.hazelcast.map.impl.operation.EvictOperation

        return key;
    }

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

Examples of com.hazelcast.map.impl.operation.EvictOperation

        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

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

Examples of com.hazelcast.map.operation.EvictOperation

        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

Examples of com.hazelcast.map.operation.EvictOperation

        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

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
TOP
Copyright © 2018 www.massapi.com. 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.