|
|||||||||
| 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.AbstractBroadcasterProxy
org.atmosphere.plugin.hazelcast.HazelcastBroadcaster
public class HazelcastBroadcaster
Simple Broadcaster implementation based on Hazelcast
| 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, started, uniqueWriteQueue, uri, waitTime, writeQueues, writeTimeoutInSecond |
| Fields inherited from interface org.atmosphere.cpr.Broadcaster |
|---|
ROOT_MASTER |
| Constructor Summary | |
|---|---|
HazelcastBroadcaster()
|
|
| Method Summary | |
|---|---|
org.atmosphere.cpr.Broadcaster |
addAtmosphereResource(org.atmosphere.cpr.AtmosphereResource resource)
|
void |
destroy()
|
protected com.hazelcast.core.ITopic |
getTopic()
Get the Hazelcast topic |
void |
incomingBroadcast()
|
org.atmosphere.cpr.Broadcaster |
initialize(String id,
org.atmosphere.cpr.AtmosphereConfig config)
|
org.atmosphere.cpr.Broadcaster |
initialize(String id,
URI uri,
org.atmosphere.cpr.AtmosphereConfig config)
|
void |
outgoingBroadcast(Object message)
|
org.atmosphere.cpr.Broadcaster |
removeAtmosphereResource(org.atmosphere.cpr.AtmosphereResource resource)
|
void |
setID(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 |
|---|
addBroadcasterLifeCyclePolicyListener, addBroadcasterListener, awaitAndBroadcast, broadcasterListeners, broadcastOnResume, broadcastOnResume, cacheAndSuspend, cacheLostMessage, cacheLostMessage, cacheLostMessage, cacheLostMessage, checkCachedAndPush, createBroadcasterConfig, delayBroadcast, delayBroadcast, deliverPush, dispatchMessages, entryDone, executeAsyncWrite, executeBlockingWrite, filter, futureDone, getAsyncWriteHandler, getAtmosphereResources, getBroadcasterConfig, getID, getScope, isDestroyed, killReactiveThreads, lifeCycleListeners, lifeCyclePolicy, messages, notifyAndAdd, notifyBroadcastListener, notifyDestroyListener, notifyEmptyListener, notifyIdleListener, notifyOnAddAtmosphereResourceListener, notifyOnMessage, notifyOnRemoveAtmosphereResourceListener, onException, onException, outOfOrderBroadcastSupported, perRequestFilter, policy, prepareInvokeOnStateChange, push, queueWriteIO, reactiveThreadsCount, releaseExternalResources, removeAtmosphereResource, removeBroadcasterLifeCyclePolicyListener, removeBroadcasterListener, 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 |
|---|
public HazelcastBroadcaster()
| Method Detail |
|---|
public org.atmosphere.cpr.Broadcaster initialize(String id,
org.atmosphere.cpr.AtmosphereConfig config)
initialize in class org.atmosphere.cpr.DefaultBroadcaster
public org.atmosphere.cpr.Broadcaster initialize(String id,
URI uri,
org.atmosphere.cpr.AtmosphereConfig config)
initialize in interface org.atmosphere.cpr.Broadcasterinitialize in class org.atmosphere.util.AbstractBroadcasterProxypublic void setUp()
public org.atmosphere.cpr.Broadcaster addAtmosphereResource(org.atmosphere.cpr.AtmosphereResource resource)
addAtmosphereResource in interface org.atmosphere.cpr.BroadcasteraddAtmosphereResource in class org.atmosphere.cpr.DefaultBroadcasterpublic org.atmosphere.cpr.Broadcaster removeAtmosphereResource(org.atmosphere.cpr.AtmosphereResource resource)
removeAtmosphereResource in interface org.atmosphere.cpr.BroadcasterremoveAtmosphereResource in class org.atmosphere.cpr.DefaultBroadcasterpublic void setID(String id)
setID in interface org.atmosphere.cpr.BroadcastersetID in class org.atmosphere.cpr.DefaultBroadcasterpublic void destroy()
destroy in interface org.atmosphere.cpr.Broadcasterdestroy in class org.atmosphere.cpr.DefaultBroadcasterpublic void incomingBroadcast()
incomingBroadcast in class org.atmosphere.util.AbstractBroadcasterProxypublic void outgoingBroadcast(Object message)
outgoingBroadcast in class org.atmosphere.util.AbstractBroadcasterProxyprotected com.hazelcast.core.ITopic getTopic()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||