Examples of ByteArrayWrapper


Examples of org.springframework.data.redis.connection.util.ByteArrayWrapper

      }
      topics = set;
    }

    for (Topic topic : topics) {
      ByteArrayWrapper holder = new ByteArrayWrapper(serializer.serialize(topic.getTopic()));

      if (topic instanceof ChannelTopic) {
        remove(listener, topic, holder, channelMapping, channelsToRemove);

        if (trace) {
View Full Code Here

Examples of org.springframework.data.redis.connection.util.ByteArrayWrapper

    public void onMessage(Message message, byte[] pattern) {
      Collection<MessageListener> listeners = null;

      // if it's a pattern, disregard channel
      if (pattern != null && pattern.length > 0) {
        listeners = patternMapping.get(new ByteArrayWrapper(pattern));
      } else {
        pattern = null;
        // do channel matching first
        listeners = channelMapping.get(new ByteArrayWrapper(message.getChannel()));
      }

      if (!CollectionUtils.isEmpty(listeners)) {
        dispatchMessage(listeners, message, pattern);
      }
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.