Package spullara.util.concurrent

Examples of spullara.util.concurrent.Promise


            redisClient.handleMessage(message);
          } else {
            // Need some way to notify
          }
        } else {
          Promise poll = queue.poll();
          if (message instanceof ErrorReply) {
            poll.setException(new RedisException(((ErrorReply) message).data()));
          } else {
            poll.set(message);
          }
        }
      }

      @Override
      public void exceptionCaught(ChannelHandlerContext ctx, ExceptionEvent e) throws Exception {
        if (queue.isEmpty()) {
          // Needed for pub/sub?
        } else {
          Promise poll = queue.poll();
          poll.setException(e.getCause());
        }
      }
    };
    final RedisEncoder encoder = new RedisEncoder();
    final RedisDecoder decoder = new RedisDecoder();
View Full Code Here

TOP

Related Classes of spullara.util.concurrent.Promise

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.