Class RedissonBroadcaster

  • All Implemented Interfaces:
    org.atmosphere.cpr.Broadcaster

    public class RedissonBroadcaster
    extends org.atmosphere.util.AbstractBroadcasterProxy
    Simple Broadcaster implementation based on Redisson
    Author:
    Michael Gerlyand
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.atmosphere.cpr.DefaultBroadcaster

        org.atmosphere.cpr.DefaultBroadcaster.AsyncWriteToken, org.atmosphere.cpr.DefaultBroadcaster.WriteQueue
      • Nested classes/interfaces inherited from interface org.atmosphere.cpr.Broadcaster

        org.atmosphere.cpr.Broadcaster.POLICY, org.atmosphere.cpr.Broadcaster.SCOPE
    • Field Summary

      • Fields inherited from class org.atmosphere.cpr.DefaultBroadcaster

        asyncWriteFuture, bc, broadcasterListeners, broadcastOnResume, CACHED, candidateForPoolable, config, delayedBroadcast, destroyed, dispatchThread, initialized, lifeCycleListeners, messages, name, notifierFuture, POLLING_DEFAULT, resources, scope, sharedListeners, started, uniqueWriteQueue, uri, usingTokenIdForAttribute, waitTime, writeQueues, writeTimeoutInSecond
      • Fields inherited from interface org.atmosphere.cpr.Broadcaster

        ROOT_MASTER
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void destroy()
      void incomingBroadcast()
      org.atmosphere.cpr.Broadcaster initialize​(java.lang.String id, java.net.URI uri, org.atmosphere.cpr.AtmosphereConfig config)  
      org.atmosphere.cpr.Broadcaster initialize​(java.lang.String id, org.atmosphere.cpr.AtmosphereConfig config)  
      void outgoingBroadcast​(java.lang.Object message)
      void setID​(java.lang.String id)  
      void setUp()  
      • Methods inherited from class org.atmosphere.util.AbstractBroadcasterProxy

        b, broadcast, broadcast, broadcast, broadcastReceivedMessage, getBroadcastHandler, invokeOnStateChange, reconfigure
      • Methods inherited from class org.atmosphere.cpr.DefaultBroadcaster

        addAtmosphereResource, addBroadcasterLifeCyclePolicyListener, addBroadcasterListener, awaitAndBroadcast, broadcasterListeners, broadcastOnResume, broadcastOnResume, cacheAndSuspend, cacheLostMessage, cacheLostMessage, cacheLostMessage, cacheMessageOnIOException, checkCachedAndPush, createBroadcasterConfig, currentLifecycleTask, currentLifecycleTask, delayBroadcast, delayBroadcast, deliverPush, dispatchMessages, endBroadcast, entryDone, executeAsyncWrite, executeBlockingWrite, filter, futureDone, getAsyncWriteHandler, getAtmosphereResources, getBroadcasterConfig, getBroadcasterLifeCyclePolicy, getID, getScope, isDestroyed, killReactiveThreads, lifecycleHandler, lifecycleHandler, lifeCycleListeners, lifeCyclePolicy, messages, notifyAndAdd, notifyBroadcastListener, notifyOnAddAtmosphereResourceListener, notifyOnMessage, notifyOnRemoveAtmosphereResourceListener, onException, onException, outOfOrderBroadcastSupported, perRequestFilter, policy, prepareInvokeOnStateChange, push, queueWriteIO, reactiveThreadsCount, recentActivity, releaseExternalResources, removeAtmosphereResource, removeAtmosphereResource, removeBroadcasterLifeCyclePolicyListener, removeBroadcasterListener, rename, resumeAll, retrieveTrackedBroadcast, scheduleFixedBroadcast, scheduleFixedBroadcast, setBroadcasterConfig, setBroadcasterLifeCyclePolicy, setScope, setSuspendPolicy, spawnReactor, start, toString, writeQueues
      • Methods inherited from class java.lang.Object

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

      • RedissonBroadcaster

        public RedissonBroadcaster()
    • Method Detail

      • initialize

        public org.atmosphere.cpr.Broadcaster initialize​(java.lang.String id,
                                                         org.atmosphere.cpr.AtmosphereConfig config)
        Overrides:
        initialize in class org.atmosphere.cpr.DefaultBroadcaster
      • initialize

        public org.atmosphere.cpr.Broadcaster initialize​(java.lang.String id,
                                                         java.net.URI uri,
                                                         org.atmosphere.cpr.AtmosphereConfig config)
        Specified by:
        initialize in interface org.atmosphere.cpr.Broadcaster
        Overrides:
        initialize in class org.atmosphere.util.AbstractBroadcasterProxy
      • setUp

        public void setUp()
      • setID

        public void setID​(java.lang.String id)
        Specified by:
        setID in interface org.atmosphere.cpr.Broadcaster
        Overrides:
        setID in class org.atmosphere.cpr.DefaultBroadcaster
      • destroy

        public void destroy()
        Specified by:
        destroy in interface org.atmosphere.cpr.Broadcaster
        Overrides:
        destroy in class org.atmosphere.cpr.DefaultBroadcaster
      • incomingBroadcast

        public void incomingBroadcast()
        Specified by:
        incomingBroadcast in class org.atmosphere.util.AbstractBroadcasterProxy
      • outgoingBroadcast

        public void outgoingBroadcast​(java.lang.Object message)
        Specified by:
        outgoingBroadcast in class org.atmosphere.util.AbstractBroadcasterProxy