Examples of DeleteOperation


Examples of com.hazelcast.map.operation.DeleteOperation

        return key;
    }

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

Examples of de.fu_berlin.inf.dpp.concurrent.jupiter.internal.text.DeleteOperation

     */
    public Operation toOperation() {

        // delete activityDataObject
        if ((replacedText.length() > 0) && (text.length() == 0)) {
            return new DeleteOperation(offset, replacedText);
        }
        // insert activityDataObject
        if ((replacedText.length() == 0) && (text.length() > 0)) {
            return new InsertOperation(offset, text);
        }
        // replace operation has to be split into delete and insert operation
        if ((replacedText.length() > 0) && (text.length() > 0)) {
            return new SplitOperation(
                new DeleteOperation(offset, replacedText), new InsertOperation(
                    offset, text));
        }

        // Cannot happen
        assert false;
View Full Code Here

Examples of de.fu_berlin.inf.dpp.concurrent.jupiter.internal.text.DeleteOperation

     */
    public Operation toOperation() {

        // delete activityDataObject
        if ((replacedText.length() > 0) && (text.length() == 0)) {
            return new DeleteOperation(offset, replacedText);
        }

        // insert activityDataObject
        if ((replacedText.length() == 0) && (text.length() > 0)) {
            return new InsertOperation(offset, text);
        }

        // replace operation has to be split into delete and insert operation
        if ((replacedText.length() > 0) && (text.length() > 0)) {
            return new SplitOperation(
                new DeleteOperation(offset, replacedText), new InsertOperation(
                    offset, text));
        }

        // Cannot happen
        assert false;
View Full Code Here

Examples of net.sf.ehcache.writer.writebehind.operations.DeleteOperation

        try {
            if (stopping || stopped) {
                throw new CacheException("The entry for key '" + entry.getKey() + "' couldn't be deleted through the write-behind "
                        + "queue for cache '" + cacheName + "' since it's not started.");
            }
            waiting.add(new DeleteOperation(entry));
            if (waiting.size() + 1 < maxQueueSize) {
                queueIsFull.signal();
            }
            queueIsEmpty.signal();
        } finally {
View Full Code Here

Examples of net.spy.memcached.ops.DeleteOperation

   * @param when when the deletion should take effect
   */
  public Future<Boolean> delete(String key, int when) {
    final CountDownLatch latch=new CountDownLatch(1);
    final OperationFuture<Boolean> rv=new OperationFuture<Boolean>(latch);
    DeleteOperation op=opFact.delete(key, when,
        new OperationCallback() {
          public void receivedStatus(OperationStatus s) {
            rv.set(s.isSuccess());
          }
          public void complete() {
View Full Code Here

Examples of net.spy.memcached.ops.DeleteOperation

   */
  public Future<Boolean> delete(String key) {
    final CountDownLatch latch=new CountDownLatch(1);
    final OperationFuture<Boolean> rv=new OperationFuture<Boolean>(latch,
      operationTimeout);
    DeleteOperation op=opFact.delete(key,
        new OperationCallback() {
          public void receivedStatus(OperationStatus s) {
            rv.set(s.isSuccess());
          }
          public void complete() {
View Full Code Here

Examples of net.spy.memcached.ops.DeleteOperation

   */
  public OperationFuture<Boolean> delete(String key) {
    final CountDownLatch latch = new CountDownLatch(1);
    final OperationFuture<Boolean> rv = new OperationFuture<Boolean>(key,
        latch, operationTimeout);
    DeleteOperation op = opFact.delete(key, new OperationCallback() {
      public void receivedStatus(OperationStatus s) {
        rv.set(s.isSuccess(), s);
      }

      public void complete() {
View Full Code Here

Examples of net.spy.memcached.ops.DeleteOperation

   */
  public Future<Boolean> delete(String key, int hold) {
    final CountDownLatch latch=new CountDownLatch(1);
    final OperationFuture<Boolean> rv=new OperationFuture<Boolean>(latch,
      operationTimeout);
    DeleteOperation op=opFact.delete(key, hold,
        new OperationCallback() {
          public void receivedStatus(OperationStatus s) {
            rv.set(s.isSuccess());
          }
          public void complete() {
View Full Code Here

Examples of net.spy.memcached.ops.DeleteOperation

   */
  public Future<Boolean> delete(String key) {
    final CountDownLatch latch=new CountDownLatch(1);
    final OperationFuture<Boolean> rv=new OperationFuture<Boolean>(latch,
      operationTimeout);
    DeleteOperation op=opFact.delete(key,
        new OperationCallback() {
          public void receivedStatus(OperationStatus s) {
            rv.set(s.isSuccess());
          }
          public void complete() {
View Full Code Here

Examples of org.apache.camel.component.zookeeper.operations.DeleteOperation

        }
        return result;
    }

    private OperationResult synchronouslyDelete(ProductionContext ctx) throws Exception {
        DeleteOperation setData = new DeleteOperation(ctx.connection, ctx.node);
        setData.setVersion(ctx.version);

        OperationResult result = setData.get();

        if (!result.isOk() && configuration.shouldCreate() && result.failedDueTo(Code.NONODE)) {
            log.warn(format("Node '%s' did not exist, creating it.", ctx.node));
            result = createNode(ctx);
        }
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.