Package org.jredis.protocol

Examples of org.jredis.protocol.ValueResponse


  public static class FutureBoolean extends FutureResultBase implements Future<Boolean>{

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

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


        }

        public Boolean get (long timeout, TimeUnit unit)
          throws InterruptedException, ExecutionException, TimeoutException
        {
          ValueResponse valResp = (ValueResponse) pendingRequest.get(timeout, unit);
          return valResp.getBooleanValue();
        }
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

  public static class FutureLong extends FutureResultBase implements Future<Long>{

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

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

        }

        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

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

        @SuppressWarnings("boxing")
    public Boolean get () throws InterruptedException, ExecutionException {
          ValueResponse valResp = (ValueResponse) pendingRequest.get();
          return valResp.getBooleanValue();
        }
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.getBooleanValue();
        }
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.