Package org.jredis.protocol

Examples of org.jredis.protocol.BulkResponse


  public static class FutureDouble extends FutureResultBase implements Future<Double>{

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

        public Double get () throws InterruptedException, ExecutionException {
          BulkResponse bulkResp = (BulkResponse) pendingRequest.get();
          if(bulkResp.getBulkData() != null)
            return Convert.toDouble(bulkResp.getBulkData());
          return null;
        }
View Full Code Here


        }

        public Double get (long timeout, TimeUnit unit)
          throws InterruptedException, ExecutionException, TimeoutException
        {
          BulkResponse bulkResp = (BulkResponse) pendingRequest.get(timeout, unit);
          if(bulkResp.getBulkData() != null)
            return Convert.toDouble(bulkResp.getBulkData());
          return null;
        }
View Full Code Here

  public static class FutureByteArray extends FutureResultBase implements Future<byte[]>{

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

        public byte[] get () throws InterruptedException, ExecutionException {
          BulkResponse resp = (BulkResponse) pendingRequest.get();
          return resp.getBulkData();
        }
View Full Code Here

        }

        public byte[] get (long timeout, TimeUnit unit)
          throws InterruptedException, ExecutionException, TimeoutException
        {
          BulkResponse resp = (BulkResponse) pendingRequest.get(timeout, unit);
          return resp.getBulkData();
        }
View Full Code Here

          list.add(tokenizer.nextToken());
        }
        return list;
        }
        public List<String> get () throws InterruptedException, ExecutionException {
          BulkResponse resp = (BulkResponse) pendingRequest.get();
          return getResultList(resp);
        }
View Full Code Here

        }

        public List<String> get (long timeout, TimeUnit unit)
          throws InterruptedException, ExecutionException, TimeoutException
        {
          BulkResponse resp = (BulkResponse) pendingRequest.get(timeout, unit);
          return getResultList(resp);
        }
View Full Code Here

          infomap.put(key, value);
        }
        return infomap;
        }
        public Map<String, String> get () throws InterruptedException, ExecutionException {
          BulkResponse resp = (BulkResponse) pendingRequest.get();
          return getResultMap(resp);
        }
View Full Code Here

        }

        public Map<String, String> get (long timeout, TimeUnit unit)
          throws InterruptedException, ExecutionException, TimeoutException
        {
          BulkResponse resp = (BulkResponse) pendingRequest.get(timeout, unit);
          return getResultMap(resp);
        }
View Full Code Here

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

        @SuppressWarnings("boxing")
    public Double get () throws InterruptedException, ExecutionException {
          BulkResponse bulkResp = (BulkResponse) pendingRequest.get();
          if(bulkResp.getBulkData() != null)
            return Convert.toDouble(bulkResp.getBulkData());
          return null;
        }
View Full Code Here

        @SuppressWarnings("boxing")
    public Double get (long timeout, TimeUnit unit)
          throws InterruptedException, ExecutionException, TimeoutException
        {
          BulkResponse bulkResp = (BulkResponse) pendingRequest.get(timeout, unit);
          if(bulkResp.getBulkData() != null)
            return Convert.toDouble(bulkResp.getBulkData());
          return null;
        }
View Full Code Here

TOP

Related Classes of org.jredis.protocol.BulkResponse

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.