|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.atmosphere.cpr.DefaultBroadcaster
org.atmosphere.util.SimpleBroadcaster
org.atmosphere.plugin.rabbitmq.RabbitMQBroadcaster
public class RabbitMQBroadcaster
Simple Broadcaster implementation based on RabbitMQ
| 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, candidateForPoolable, 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)
|
void |
shutdownCompleted(com.rabbitmq.client.ShutdownSignalException cause)
|
| 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 |
|---|
public RabbitMQBroadcaster()
| Method Detail |
|---|
public org.atmosphere.cpr.Broadcaster initialize(String id,
org.atmosphere.cpr.AtmosphereConfig config)
initialize in class org.atmosphere.util.SimpleBroadcasterpublic void init(org.atmosphere.cpr.AtmosphereConfig config)
public org.atmosphere.cpr.Broadcaster initialize(String name,
URI uri,
org.atmosphere.cpr.AtmosphereConfig config)
initialize in interface org.atmosphere.cpr.Broadcasterinitialize in class org.atmosphere.cpr.DefaultBroadcasterpublic void setID(String id)
setID in interface org.atmosphere.cpr.BroadcastersetID in class org.atmosphere.cpr.DefaultBroadcasterpublic String getID()
getID in interface org.atmosphere.cpr.BroadcastergetID in class org.atmosphere.cpr.DefaultBroadcasterprotected void push(org.atmosphere.cpr.Deliver entry)
push in class org.atmosphere.cpr.DefaultBroadcasterpublic void outgoingBroadcast(Object message)
public void releaseExternalResources()
releaseExternalResources in interface org.atmosphere.cpr.BroadcasterreleaseExternalResources in class org.atmosphere.cpr.DefaultBroadcasterpublic void shutdownCompleted(com.rabbitmq.client.ShutdownSignalException cause)
shutdownCompleted in interface com.rabbitmq.client.ShutdownListener
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||