Package org.springframework.data.keyvalue.redis.connection

Examples of org.springframework.data.keyvalue.redis.connection.Subscription


    void cancel() {
      if (connection != null) {
        synchronized (localMonitor) {
          if (connection != null) {
            Subscription sub = connection.getSubscription();
            if (sub != null) {
              sub.pUnsubscribe();
              sub.unsubscribe();
            }
          }
        }
      }
    }
View Full Code Here


    void subscribeChannel(byte[]... channels) {
      if (channels != null && channels.length > 0) {
        if (connection != null) {
          synchronized (localMonitor) {
            if (connection != null) {
              Subscription sub = connection.getSubscription();
              if (sub != null) {
                sub.subscribe(channels);
              }
            }
          }
        }
      }
View Full Code Here

    void subscribePattern(byte[]... patterns) {
      if (patterns != null && patterns.length > 0) {
        if (connection != null) {
          synchronized (localMonitor) {
            if (connection != null) {
              Subscription sub = connection.getSubscription();
              if (sub != null) {
                sub.pSubscribe(patterns);
              }
            }
          }
        }
      }
View Full Code Here

    void unsubscribeChannel(byte[]... channels) {
      if (channels != null && channels.length > 0) {
        if (connection != null) {
          synchronized (localMonitor) {
            if (connection != null) {
              Subscription sub = connection.getSubscription();
              if (sub != null) {
                sub.unsubscribe(channels);
              }
            }
          }
        }
      }
View Full Code Here

    void unsubscribePattern(byte[]... patterns) {
      if (patterns != null && patterns.length > 0) {
        if (connection != null) {
          synchronized (localMonitor) {
            if (connection != null) {
              Subscription sub = connection.getSubscription();
              if (sub != null) {
                sub.pUnsubscribe(patterns);
              }
            }
          }
        }
      }
View Full Code Here

TOP

Related Classes of org.springframework.data.keyvalue.redis.connection.Subscription

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.