Examples of UnlockOperation


Examples of ch.entwine.weblounge.common.repository.UnlockOperation

    if (!isStarted())
      throw new IllegalStateException("Content repository is not connected");

    // Create an asynchronous operation representation and return it
    UnlockOperation lockOperation = new UnlockOperationImpl(uri, user);
    processor.enqueue(lockOperation);
    return lockOperation;
  }
View Full Code Here

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

        return key;
    }

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

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

        }
        return futures;
    }

    private void sendUnlockOperation(Collection<Future> futures, Data key) {
        Operation operation = new UnlockOperation(namespace, key, -1, true);
        try {
            Future f = invoke(operation, key);
            futures.add(f);
        } catch (Throwable t) {
            ILogger logger = nodeEngine.getLogger(getClass());
View Full Code Here

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

    private long getTimeInMillis(final long time, final TimeUnit timeunit) {
        return timeunit != null ? timeunit.toMillis(time) : time;
    }

    public void unlock(NodeEngine nodeEngine, Data key) {
        UnlockOperation operation = new UnlockOperation(namespace, key, getThreadId());
        InternalCompletableFuture<Number> f = invoke(nodeEngine, operation, key);
        f.getSafely();
    }
View Full Code Here

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

        InternalCompletableFuture<Number> f = invoke(nodeEngine, operation, key);
        f.getSafely();
    }

    public void forceUnlock(NodeEngine nodeEngine, Data key) {
        UnlockOperation operation = new UnlockOperation(namespace, key, -1, true);
        InternalCompletableFuture<Number> f = invoke(nodeEngine, operation, key);
        f.getSafely();
    }
View Full Code Here

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

            }
        }
    }

    private void sendUnlockOperation(LockStoreContainer container, LockStoreImpl lockStore, Data key) {
        UnlockOperation op = new UnlockOperation(lockStore.getNamespace(), key, -1, true);
        op.setAsyncBackup(true);
        op.setNodeEngine(nodeEngine);
        op.setServiceName(SERVICE_NAME);
        op.setService(LockServiceImpl.this);
        op.setResponseHandler(ResponseHandlerFactory.createEmptyResponseHandler());
        op.setPartitionId(container.getPartitionId());
        nodeEngine.getOperationService().executeOperation(op);
    }
View Full Code Here

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

        }
        return futures;
    }

    private void sendUnlockOperation(Collection<Future> futures, Data key) {
        Operation operation = new UnlockOperation(namespace, key, -1, true);
        try {
            Future f = invoke(operation, key);
            futures.add(f);
        } catch (Throwable t) {
            ILogger logger = nodeEngine.getLogger(getClass());
View Full Code Here

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

            }
        }
    }

    private void sendUnlockOperation(LockStoreContainer container, LockStoreImpl lockStore, Data key) {
        UnlockOperation op = new LocalLockCleanupOperation(lockStore.getNamespace(), key, -1);
        op.setAsyncBackup(true);
        op.setNodeEngine(nodeEngine);
        op.setServiceName(SERVICE_NAME);
        op.setService(LockServiceImpl.this);
        op.setResponseHandler(ResponseHandlerFactory.createEmptyResponseHandler());
        op.setPartitionId(container.getPartitionId());
        op.setValidateTarget(false);
        nodeEngine.getOperationService().executeOperation(op);
    }
View Full Code Here

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

        return key;
    }

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

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

        return key;
    }

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