Examples of ChannelTopic


Examples of org.springframework.data.keyvalue.redis.listener.ChannelTopic

    String xTopics = element.getAttribute("topic");
    if (StringUtils.hasText(xTopics)) {
      String[] array = StringUtils.delimitedListToStringArray(xTopics, " ");

      for (String string : array) {
        topics.add(string.contains("*") ? new PatternTopic(string) : new ChannelTopic(string));
      }
    }
    ret[0] = builder.getBeanDefinition();
    ret[1] = topics;

View Full Code Here

Examples of org.springframework.data.redis.listener.ChannelTopic

        List<Topic> topics = new ArrayList<Topic>();
        for (String channel : channelsArrays) {
            if (Command.PSUBSCRIBE.toString().equals(redisConfiguration.getCommand())) {
                topics.add(new PatternTopic(channel));
            } else if (Command.SUBSCRIBE.toString().equals(redisConfiguration.getCommand())) {
                topics.add(new ChannelTopic(channel));
            } else {
                throw new RuntimeException("Unsupported Command");
            }
        }
        return topics;
View Full Code Here

Examples of org.springframework.data.redis.listener.ChannelTopic

    listener.afterPropertiesSet();

    this.container = new RedisMessageListenerContainer();
    container.setConnectionFactory(this.redisAvailableRule.getResource());
    container.afterPropertiesSet();
    container.addMessageListener(listener, Collections.<Topic> singletonList(new ChannelTopic(topic)));
    container.start();
    Thread.sleep(1000);
  }
View Full Code Here

Examples of org.springframework.data.redis.listener.ChannelTopic

    listener.afterPropertiesSet();

    this.container = new RedisMessageListenerContainer();
    container.setConnectionFactory(connectionFactory);
    container.afterPropertiesSet();
    container.addMessageListener(listener, Collections.<Topic> singletonList(new ChannelTopic(TOPIC)));
    container.start();
    Thread.sleep(1000);
  }
View Full Code Here

Examples of org.springframework.data.redis.listener.ChannelTopic

    String xTopics = element.getAttribute("topic");
    if (StringUtils.hasText(xTopics)) {
      String[] array = StringUtils.delimitedListToStringArray(xTopics, " ");

      for (String string : array) {
        topics.add(string.contains("*") ? new PatternTopic(string) : new ChannelTopic(string));
      }
    }
    ret[0] = builder.getBeanDefinition();
    ret[1] = topics;

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.