org.atmosphere.plugin.rabbitmq
Class RabbitMQBroadcaster

java.lang.Object
  extended by org.atmosphere.cpr.DefaultBroadcaster
      extended by org.atmosphere.util.SimpleBroadcaster
          extended by org.atmosphere.plugin.rabbitmq.RabbitMQBroadcaster
All Implemented Interfaces:
org.atmosphere.cpr.Broadcaster

public class RabbitMQBroadcaster
extends org.atmosphere.util.SimpleBroadcaster

Simple Broadcaster implementation based on RabbitMQ

Author:
Thibault Normand, Jean-Francois Arcand

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
ASYNC_TOKEN, asyncWriteFuture, bc, broadcasterListeners, broadcastOnResume, CACHED, config, delayedBroadcast, destroyed, dispatchThread, initialized, lifeCycleListeners, messages, name, notifierFuture, POLLING_DEFAULT, resources, scope, sharedListeners, started, uniqueWriteQueue, uri, waitTime, writeQueues, writeTimeoutInSecond
 
Fields inherited from interface org.atmosphere.cpr.Broadcaster
ROOT_MASTER
 
Constructor Summary
RabbitMQBroadcaster()
           
 
Method Summary
 String getID()
           
 void init(org.atmosphere.cpr.AtmosphereConfig config)
           
 org.atmosphere.cpr.Broadcaster initialize(String id, org.atmosphere.cpr.AtmosphereConfig config)
           
 org.atmosphere.cpr.Broadcaster initialize(String name, URI uri, org.atmosphere.cpr.AtmosphereConfig config)
           
 void outgoingBroadcast(Object message)
           
protected  void push(org.atmosphere.cpr.Deliver entry)
           
 void releaseExternalResources()
           
 void setID(String id)
           
 
Methods inherited from class org.atmosphere.util.SimpleBroadcaster
broadcast, broadcast, broadcast, createBroadcasterConfig, prepareInvokeOnStateChange, queueWriteIO, setBroadcasterConfig, start
 
Methods inherited from class org.atmosphere.cpr.DefaultBroadcaster
addAtmosphereResource, addBroadcasterLifeCyclePolicyListener, addBroadcasterListener, awaitAndBroadcast, broadcasterListeners, broadcastOnResume, broadcastOnResume, cacheAndSuspend, cacheLostMessage, cacheLostMessage, cacheLostMessage, cacheLostMessage, cacheMessageOnIOException, checkCachedAndPush, currentLifecycleTask, currentLifecycleTask, delayBroadcast, delayBroadcast, deliverPush, destroy, dispatchMessages, endBroadcast, entryDone, executeAsyncWrite, executeBlockingWrite, filter, futureDone, getAsyncWriteHandler, getAtmosphereResources, getBroadcasterConfig, getBroadcasterLifeCyclePolicy, getBroadcastHandler, getScope, invokeOnStateChange, isDestroyed, killReactiveThreads, lifecycleHandler, lifecycleHandler, lifeCycleListeners, lifeCyclePolicy, messages, notifyAndAdd, notifyBroadcastListener, notifyOnAddAtmosphereResourceListener, notifyOnMessage, notifyOnRemoveAtmosphereResourceListener, onException, onException, outOfOrderBroadcastSupported, perRequestFilter, policy, reactiveThreadsCount, recentActivity, removeAtmosphereResource, removeAtmosphereResource, removeBroadcasterLifeCyclePolicyListener, removeBroadcasterListener, rename, resumeAll, retrieveTrackedBroadcast, scheduleFixedBroadcast, scheduleFixedBroadcast, setBroadcasterLifeCyclePolicy, setScope, setSuspendPolicy, spawnReactor, toString, writeQueues
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RabbitMQBroadcaster

public RabbitMQBroadcaster()
Method Detail

initialize

public org.atmosphere.cpr.Broadcaster initialize(String id,
                                                 org.atmosphere.cpr.AtmosphereConfig config)
Overrides:
initialize in class org.atmosphere.util.SimpleBroadcaster

init

public void init(org.atmosphere.cpr.AtmosphereConfig config)

initialize

public org.atmosphere.cpr.Broadcaster initialize(String name,
                                                 URI uri,
                                                 org.atmosphere.cpr.AtmosphereConfig config)
Specified by:
initialize in interface org.atmosphere.cpr.Broadcaster
Overrides:
initialize in class org.atmosphere.cpr.DefaultBroadcaster

setID

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

getID

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

push

protected void push(org.atmosphere.cpr.Deliver entry)
Overrides:
push in class org.atmosphere.cpr.DefaultBroadcaster

outgoingBroadcast

public void outgoingBroadcast(Object message)

releaseExternalResources

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


Copyright © 2015. All Rights Reserved.