Package org.jredis.protocol

Examples of org.jredis.protocol.ValueResponse


        protected FutureBit (Future<Response> pendingRequest) { super(pendingRequest); }

        @SuppressWarnings("boxing")
    public Boolean get () throws InterruptedException, ExecutionException {
          ValueResponse valResp = (ValueResponse) pendingRequest.get();
          return valResp.getLongValue() == 1;
        }
View Full Code Here


        @SuppressWarnings("boxing")
    public Boolean get (long timeout, TimeUnit unit)
          throws InterruptedException, ExecutionException, TimeoutException
        {
          ValueResponse valResp = (ValueResponse) pendingRequest.get(timeout, unit);
          return valResp.getLongValue() == 1;
        }
View Full Code Here

  public static class FutureString extends FutureResultBase implements Future<String>{

        protected FutureString (Future<Response> pendingRequest) { super(pendingRequest); }

        public String get () throws InterruptedException, ExecutionException {
          ValueResponse valResp = (ValueResponse) pendingRequest.get();
          return valResp.getStringValue();
        }
View Full Code Here

        }

        public String get (long timeout, TimeUnit unit)
          throws InterruptedException, ExecutionException, TimeoutException
        {
          ValueResponse valResp = (ValueResponse) pendingRequest.get(timeout, unit);
          return valResp.getStringValue();
        }
View Full Code Here

        private final RedisType getRedisType(ValueResponse resp){
      String stringValue = resp.getStringValue();
      return RedisType.valueOf(stringValue);
        }
        public RedisType get () throws InterruptedException, ExecutionException {
          ValueResponse valResp = (ValueResponse) pendingRequest.get();
          return getRedisType(valResp);
        }
View Full Code Here

        }

        public RedisType get (long timeout, TimeUnit unit)
          throws InterruptedException, ExecutionException, TimeoutException
        {
          ValueResponse valResp = (ValueResponse) pendingRequest.get(timeout, unit);
          return getRedisType(valResp);
        }
View Full Code Here

        protected FutureLong (Future<Response> pendingRequest) { super(pendingRequest); }

        @SuppressWarnings("boxing")
    public Long get () throws InterruptedException, ExecutionException {
          ValueResponse valResp = (ValueResponse) pendingRequest.get();
          return valResp.getLongValue();
        }
View Full Code Here

        @SuppressWarnings("boxing")
    public Long get (long timeout, TimeUnit unit)
          throws InterruptedException, ExecutionException, TimeoutException
        {
          ValueResponse valResp = (ValueResponse) pendingRequest.get(timeout, unit);
          return valResp.getLongValue();
        }
View Full Code Here

  public static class FutureSortStoreResp extends FutureResultBase implements Future<List<byte[]>>{
   
        protected FutureSortStoreResp (Future<Response> pendingRequest) { super(pendingRequest); }
   
        public List<byte[]> get () throws InterruptedException, ExecutionException {
          ValueResponse resp = (ValueResponse) pendingRequest.get();
          return packValueResult(resp.getLongValue());
        }
View Full Code Here

        }
   
        public List<byte[]> get (long timeout, TimeUnit unit)
    throws InterruptedException, ExecutionException, TimeoutException
        {
          ValueResponse resp = (ValueResponse) pendingRequest.get(timeout, unit);
          return packValueResult(resp.getLongValue());
        }
View Full Code Here

TOP

Related Classes of org.jredis.protocol.ValueResponse

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.