Examples of subscribe()


Examples of org.zkoss.zk.ui.event.EventQueue.subscribe()

      // autoCreate EventQueue
      EventQueue eq = EventQueues.lookup("ApplicationEventQueue", EventQueues.APPLICATION, true);

      // listen
      eq.subscribe(new SerializableEventListener() {
        private static final long serialVersionUID = 1L;

        @SuppressWarnings("unchecked")
        public void onEvent(Event event) throws Exception {
          System.out.println("ApplicationEventQueue onEvent");
View Full Code Here

Examples of org.zkoss.zss.model.Book.subscribe()

  public void addBookEventListener(EventListener listener) {
    Book book = spreadsheet.getBook();
    bookListeners.put(listener, book != null ? Boolean.TRUE : Boolean.FALSE);
    if (book != null)
      book.subscribe(listener);
  }
 
  public void removeBookEventListener(EventListener listener) {
    bookListeners.remove(listener);
    Book book = spreadsheet.getBook();
View Full Code Here

Examples of reactor.rx.Stream.subscribe()

                && PushSubscription.class.isAssignableFrom(rootAction.getSubscription().getClass())) {

              Stream originalStream = ((PushSubscription<?>) rootAction.getSubscription()).getPublisher();
              if(originalStream != null){
                rootAction.cancel();
                originalStream.subscribe(rootAction);
              }

            }
            upstreamSubscription.request(capacity);
          }
View Full Code Here

Examples of redis.clients.jedis.Jedis.subscribe()

        try {
          logger.info("Connecting to redis host=" + redisHost);
          Jedis jedis = new Jedis(redisHost);

          logger.info("Subscribing to redis channel " + redisChannel);
          jedis.subscribe(jedisPubSub, redisChannel);
          logger.info("Subscribe returned, closing down");
          jedis.quit();
        } catch (Exception e) {
          logger.error("Redis subscription had an error " + e.getMessage());
          fail("redis subscribe hit an error " + e.getMessage());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.