Examples of MemcachedException


Examples of net.rubyeye.xmemcached.exception.MemcachedException

        keyBytes, latch, exp, false);
    this.latchWait(command, opTimeout, this.sendCommand(command));
    command.getIoBuffer().free();
    this.checkException(command);
    if (command.getResult() == null) {
      throw new MemcachedException(
          "Operation fail,may be caused by networking or timeout");
    }
    return (Boolean) command.getResult();
  }
View Full Code Here

Examples of net.rubyeye.xmemcached.exception.MemcachedException

    key = this.preProcessKey(key);
    try {
      this.sendIncrOrDecrCommand(key, delta, 0, CommandType.INCR, true,
          this.opTimeout, 0);
    } catch (TimeoutException e) {
      throw new MemcachedException(e);
    }
  }
View Full Code Here

Examples of net.rubyeye.xmemcached.exception.MemcachedException

    key = this.preProcessKey(key);
    try {
      this.sendIncrOrDecrCommand(key, delta, 0, CommandType.DECR, true,
          this.opTimeout, 0);
    } catch (TimeoutException e) {
      throw new MemcachedException(e);
    }
  }
View Full Code Here

Examples of net.rubyeye.xmemcached.exception.MemcachedException

  public void flushAllWithNoReply() throws InterruptedException,
      MemcachedException {
    try {
      this.flushAllMemcachedServers(this.opTimeout, true, 0);
    } catch (TimeoutException e) {
      throw new MemcachedException(e);
    }
  }
View Full Code Here

Examples of net.rubyeye.xmemcached.exception.MemcachedException

  public void flushAllWithNoReply(int exptime) throws InterruptedException,
      MemcachedException {
    try {
      this.flushAllMemcachedServers(this.opTimeout, true, exptime);
    } catch (TimeoutException e) {
      throw new MemcachedException(e);
    }
  }
View Full Code Here

Examples of net.rubyeye.xmemcached.exception.MemcachedException

  public void flushAllWithNoReply(InetSocketAddress address)
      throws MemcachedException, InterruptedException {
    try {
      this.flushSpecialMemcachedServer(address, this.opTimeout, true, 0);
    } catch (TimeoutException e) {
      throw new MemcachedException(e);
    }
  }
View Full Code Here

Examples of net.rubyeye.xmemcached.exception.MemcachedException

      throws MemcachedException, InterruptedException {
    try {
      this.flushSpecialMemcachedServer(address, this.opTimeout, true,
          exptime);
    } catch (TimeoutException e) {
      throw new MemcachedException(e);
    }
  }
View Full Code Here

Examples of net.rubyeye.xmemcached.exception.MemcachedException

    CountDownLatch latch = new CountDownLatch(1);

    Queue<Session> sessionQueue = this.connector
        .getSessionByAddress(address);
    if (sessionQueue == null || sessionQueue.peek() == null) {
      throw new MemcachedException("could not find session for "
          + SystemUtils.getRawAddress(address) + ":"
          + address.getPort() + ",maybe it have not been connected");
    }

    Command command = this.commandFactory.createVerbosityCommand(latch,
View Full Code Here

Examples of net.rubyeye.xmemcached.exception.MemcachedException

  public void setLoggingLevelVerbosityWithNoReply(InetSocketAddress address,
      int level) throws InterruptedException, MemcachedException {
    try {
      this.setMemcachedLoggingLevel(address, level, true);
    } catch (TimeoutException e) {
      throw new MemcachedException(e);
    }

  }
View Full Code Here

Examples of net.rubyeye.xmemcached.exception.MemcachedException

    CountDownLatch latch = new CountDownLatch(1);

    Queue<Session> sessionQueue = this.connector
        .getSessionByAddress(address);
    if (sessionQueue == null || sessionQueue.peek() == null) {
      throw new MemcachedException("could not find session for "
          + SystemUtils.getRawAddress(address) + ":"
          + address.getPort() + ",maybe it have not been connected");
    }
    Command command = this.commandFactory.createFlushAllCommand(latch,
        exptime, noreply);
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.