Examples of IsLockedOperation


Examples of com.hazelcast.concurrent.lock.operations.IsLockedOperation

        return (String) getClientEngine().toObject(key);
    }

    @Override
    protected final Operation prepareOperation() {
        return new IsLockedOperation(getNamespace(), key, threadId);
    }
View Full Code Here

Examples of com.hazelcast.concurrent.lock.operations.IsLockedOperation

    public LockProxySupport(ObjectNamespace namespace) {
        this.namespace = namespace;
    }

    public boolean isLocked(NodeEngine nodeEngine, Data key) {
        IsLockedOperation operation = new IsLockedOperation(namespace, key);
        InternalCompletableFuture<Boolean> f = invoke(nodeEngine, operation, key);
        return f.getSafely();
    }
View Full Code Here

Examples of com.hazelcast.concurrent.lock.operations.IsLockedOperation

        int partitionId = nodeEngine.getPartitionService().getPartitionId(key);
        return nodeEngine.getOperationService().invokeOnPartition(SERVICE_NAME, operation, partitionId);
    }

    public boolean isLockedByCurrentThread(NodeEngine nodeEngine, Data key) {
        IsLockedOperation operation = new IsLockedOperation(namespace, key, getThreadId());
        InternalCompletableFuture<Boolean> f = invoke(nodeEngine, operation, key);
        return f.getSafely();
    }
View Full Code Here

Examples of com.hazelcast.concurrent.lock.operations.IsLockedOperation

        return serializationService.toObject(key);
    }

    @Override
    protected final Operation prepareOperation() {
        return new IsLockedOperation(getNamespace(), key, threadId);
    }
View Full Code Here

Examples of com.hazelcast.concurrent.lock.operations.IsLockedOperation

    public LockProxySupport(ObjectNamespace namespace) {
        this.namespace = namespace;
    }

    public boolean isLocked(NodeEngine nodeEngine, Data key) {
        IsLockedOperation operation = new IsLockedOperation(namespace, key);
        InternalCompletableFuture<Boolean> f = invoke(nodeEngine, operation, key);
        return f.getSafely();
    }
View Full Code Here

Examples of com.hazelcast.concurrent.lock.operations.IsLockedOperation

        int partitionId = nodeEngine.getPartitionService().getPartitionId(key);
        return nodeEngine.getOperationService().invokeOnPartition(SERVICE_NAME, operation, partitionId);
    }

    public boolean isLockedByCurrentThread(NodeEngine nodeEngine, Data key) {
        IsLockedOperation operation = new IsLockedOperation(namespace, key, getThreadId());
        InternalCompletableFuture<Boolean> f = invoke(nodeEngine, operation, key);
        return f.getSafely();
    }
View Full Code Here

Examples of com.hazelcast.concurrent.lock.operations.IsLockedOperation

                    case GET_LOCK_COUNT:
                        return new GetLockCountOperation();
                    case GET_REMAINING_LEASETIME:
                        return new GetRemainingLeaseTimeOperation();
                    case IS_LOCKED:
                        return new IsLockedOperation();
                    case LOCK:
                        return new LockOperation();
                    case LOCK_BACKUP:
                        return new LockBackupOperation();
                    case LOCK_REPLICATION:
View Full Code Here

Examples of com.hazelcast.concurrent.lock.operations.IsLockedOperation

        return serializationService.toObject(key);
    }

    @Override
    protected final Operation prepareOperation() {
        return new IsLockedOperation(getNamespace(), key, threadId);
    }
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.