Class RedissonFilter

  • All Implemented Interfaces:
    org.atmosphere.cpr.BroadcastFilter, org.atmosphere.cpr.BroadcastFilterLifecycle, org.atmosphere.cpr.ClusterBroadcastFilter

    public class RedissonFilter
    extends java.lang.Object
    implements org.atmosphere.cpr.ClusterBroadcastFilter
    Support for Redis
    Author:
    Michael Gerlyand
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.atmosphere.cpr.BroadcastFilter

        org.atmosphere.cpr.BroadcastFilter.BroadcastAction
    • Field Summary

      • Fields inherited from interface org.atmosphere.cpr.BroadcastFilter

        VOID_ATMOSPHERE_RESOURCE_UUID
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void destroy()
      org.atmosphere.cpr.BroadcastFilter.BroadcastAction filter​(java.lang.String broadcasterId, java.lang.Object originalMessage, java.lang.Object o)
      org.atmosphere.cpr.Broadcaster getBroadcaster()
      void init​(org.atmosphere.cpr.AtmosphereConfig config)
      void setBroadcaster​(org.atmosphere.cpr.Broadcaster bc)
      void setUri​(java.lang.String address)
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • RedissonFilter

        public RedissonFilter()
      • RedissonFilter

        public RedissonFilter​(java.net.URI uri)
    • Method Detail

      • setUri

        public void setUri​(java.lang.String address)
        Specified by:
        setUri in interface org.atmosphere.cpr.ClusterBroadcastFilter
      • init

        public void init​(org.atmosphere.cpr.AtmosphereConfig config)
        Specified by:
        init in interface org.atmosphere.cpr.BroadcastFilterLifecycle
      • destroy

        public void destroy()
        Specified by:
        destroy in interface org.atmosphere.cpr.BroadcastFilterLifecycle
      • filter

        public org.atmosphere.cpr.BroadcastFilter.BroadcastAction filter​(java.lang.String broadcasterId,
                                                                         java.lang.Object originalMessage,
                                                                         java.lang.Object o)
        Specified by:
        filter in interface org.atmosphere.cpr.BroadcastFilter
      • getBroadcaster

        public org.atmosphere.cpr.Broadcaster getBroadcaster()
        Specified by:
        getBroadcaster in interface org.atmosphere.cpr.ClusterBroadcastFilter
      • setBroadcaster

        public void setBroadcaster​(org.atmosphere.cpr.Broadcaster bc)
        Specified by:
        setBroadcaster in interface org.atmosphere.cpr.ClusterBroadcastFilter