Package org.jredis

Examples of org.jredis.ProviderException


          }
        }
       
        // This shouldn't happen -- but lets make sure, hey?
        if(i>=connCount)
          throw new ProviderException("BUG: JRedisService connection pool manager - index exceeds bounds!");
       
        response = conns[i].serviceRequest(cmd, args);
      }
      finally {
        // return the connection to the pool
        synchronized(connInUse){
          if(connInUse[i] != true)
            throw new ProviderException("BUG: JRedisService connection pool manager - connection should have been marked in use!");
          connInUse[i] = false;
        }
       
        // release the bounds sem.
        connPoolAccess.release();
View Full Code Here


        "Couldn't instantiate handler of class " +
        handlerClass.getCanonicalName() + " to service protocal version " +
        version.id + "\n thrown => " + e.getLocalizedMessage();

      Log.bug(bugMsg);
      throw new ProviderException(bugMsg, e);
    }

    // done.
    return Assert.notNull(handler, "how did this happen??", ProviderException.class);
  }
View Full Code Here

    try {
      ValueResponse valResponse = (ValueResponse) this.serviceRequest(Command.RENAMENX, oldkeydata, newkeydata);
      value = valResponse.getBooleanValue();
    }
    catch (ClassCastException e){
      throw new ProviderException("Expecting a ValueResponse here => " + e.getLocalizedMessage(), e);
    }
    return value;
  }
View Full Code Here

    try {
      BulkResponse response = (BulkResponse) this.serviceRequest(Command.RPOPLPUSH, srckeybytes, destkeybytes);
      bulkData = response.getBulkData();
    }
    catch (ClassCastException e){
      throw new ProviderException("Expecting a BulkResponse here => " + e.getLocalizedMessage(), e);
    }
    return bulkData;
   
  }
View Full Code Here

    try {
      ValueResponse valResponse = (ValueResponse) this.serviceRequest(Command.SADD, keybytes, member);
      res = valResponse.getBooleanValue();
    }
    catch (ClassCastException e){
      throw new ProviderException("Expecting a ValueResponse here => " + e.getLocalizedMessage(), e);
    }
    return res;
  }
View Full Code Here

    try {
      ValueResponse valResponse = (ValueResponse) this.serviceRequest(Command.ZADD, keybytes, Convert.toBytes(score), member);
      res = valResponse.getBooleanValue();
    }
    catch (ClassCastException e){
      throw new ProviderException("Expecting a ValueResponse here => " + e.getLocalizedMessage(), e);
    }
    return res;
  }
View Full Code Here

      BulkResponse bulkResponse = (BulkResponse) this.serviceRequest(Command.ZINCRBY, keybytes, Convert.toBytes(score), member);
      if (bulkResponse.getBulkData() != null)
        resvalue = Convert.toDouble(bulkResponse.getBulkData());
    }
    catch (ClassCastException e){
      throw new ProviderException("Expecting a ValueResponse here => " + e.getLocalizedMessage(), e);
    }
    return resvalue;
  }
View Full Code Here

    try {
      BulkResponse response = (BulkResponse) this.serviceRequest(Command.GETSET, keybytes, value);
      bulkData = response.getBulkData();
    }
    catch (ClassCastException e){
      throw new ProviderException("Expecting a BulkResponse here => " + e.getLocalizedMessage(), e);
    }
    return bulkData;
  }
View Full Code Here

    try {
      ValueResponse valResponse = (ValueResponse) this.serviceRequest(Command.SETNX, keybytes, value);
      resvalue = valResponse.getBooleanValue();
    }
    catch (ClassCastException e){
      throw new ProviderException("Expecting a ValueResponse here => " + e.getLocalizedMessage(), e);
    }
    return resvalue;
  }
View Full Code Here

    try {
      ValueResponse valResponse = (ValueResponse) this.serviceRequest(Command.MSETNX, mappings);
      resvalue = valResponse.getBooleanValue();
    }
    catch (ClassCastException e){
      throw new ProviderException("Expecting a ValueResponse here => " + e.getLocalizedMessage(), e);
    }
    return resvalue;
  }
View Full Code Here

TOP

Related Classes of org.jredis.ProviderException

Copyright © 2018 www.massapicom. 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.