Class JGroupsBroadcaster

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

    public class JGroupsBroadcaster
    extends org.atmosphere.util.AbstractBroadcasterProxy
    Simple Broadcaster implementation based on JGroups
    Author:
    Jeanfrancois Arcand
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  JGroupsBroadcaster.BroadcastMessage  
      • 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, org.atmosphere.cpr.AtmosphereConfig config)  
      void outgoingBroadcast​(java.lang.Object message)
      • Methods inherited from class org.atmosphere.util.AbstractBroadcasterProxy

        b, broadcast, broadcast, broadcast, broadcastReceivedMessage, getBroadcastHandler, initialize, 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, setID, 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

      • JGroupsBroadcaster

        public JGroupsBroadcaster()
    • 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
      • 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
      • destroy

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