Class RMIBroadcaster

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

    public class RMIBroadcaster
    extends org.atmosphere.util.AbstractBroadcasterProxy

    This broadcaster is able, each time a message is broadcasted, to update the a cluster through RMI.

    Since:
    1.1.1
    Version:
    1.0
    Author:
    Guillaume DROUET
    See Also:
    RMIPeerManager
    • 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
    • Constructor Summary

      Constructors 
      Constructor Description
      RMIBroadcaster()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void broadcastReceivedMessage​(java.lang.Object message)
      void incomingBroadcast()
      org.atmosphere.cpr.Broadcaster initialize​(java.lang.String id, org.atmosphere.cpr.AtmosphereConfig config)
      Builds a new instance identified by the given ID.
      void outgoingBroadcast​(java.lang.Object o)
      • Methods inherited from class org.atmosphere.util.AbstractBroadcasterProxy

        b, broadcast, broadcast, broadcast, 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, destroy, 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

      • RMIBroadcaster

        public RMIBroadcaster()
    • Method Detail

      • initialize

        public org.atmosphere.cpr.Broadcaster initialize​(java.lang.String id,
                                                         org.atmosphere.cpr.AtmosphereConfig config)

        Builds a new instance identified by the given ID.

        Overrides:
        initialize in class org.atmosphere.cpr.DefaultBroadcaster
        Parameters:
        id - the ID
        config - the configuration
      • incomingBroadcast

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

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

        public void broadcastReceivedMessage​(java.lang.Object message)
        Overrides:
        broadcastReceivedMessage in class org.atmosphere.util.AbstractBroadcasterProxy