Package org.atmosphere.util
Class ExcludeSessionBroadcaster
java.lang.Object
org.atmosphere.cpr.DefaultBroadcaster
org.atmosphere.util.ExcludeSessionBroadcaster
- All Implemented Interfaces:
Broadcaster
An implementation of
DefaultBroadcaster that exclude one or more AtmosphereResource- Author:
- Jeanfrancois Arcand
-
Nested Class Summary
Nested classes/interfaces inherited from class org.atmosphere.cpr.DefaultBroadcaster
DefaultBroadcaster.AsyncWriteToken, DefaultBroadcaster.WriteQueueNested classes/interfaces inherited from interface org.atmosphere.cpr.Broadcaster
Broadcaster.POLICY, 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, writeTimeoutInSecondFields inherited from interface org.atmosphere.cpr.Broadcaster
ROOT_MASTER -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiona list of sessions will be exclude for this broadcastbroadcast(Object msg, Set<AtmosphereResource> subset) the AtmosphereResources subset will be exclude for this broadcastsession will be exclude for this broadcastbroadcast(Object msg, AtmosphereResource r) the AtmosphereResource r will be exclude for this broadcastinitialize(String id, AtmosphereConfig config) Methods inherited from class org.atmosphere.cpr.DefaultBroadcaster
addAtmosphereResource, addBroadcasterLifeCyclePolicyListener, addBroadcasterListener, awaitAndBroadcast, broadcast, 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, getBroadcastHandler, getID, getScope, initialize, invokeOnStateChange, 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
-
Constructor Details
-
ExcludeSessionBroadcaster
public ExcludeSessionBroadcaster()
-
-
Method Details
-
initialize
- Overrides:
initializein classDefaultBroadcaster
-
broadcast
the AtmosphereResource r will be exclude for this broadcast- Specified by:
broadcastin interfaceBroadcaster- Overrides:
broadcastin classDefaultBroadcaster- Parameters:
msg-r-- Returns:
-
broadcast
the AtmosphereResources subset will be exclude for this broadcast- Specified by:
broadcastin interfaceBroadcaster- Overrides:
broadcastin classDefaultBroadcaster- Parameters:
msg-subset-- Returns:
-
broadcast
a list of sessions will be exclude for this broadcast- Parameters:
msg-sessions-- Returns:
-
broadcast
session will be exclude for this broadcast- Parameters:
msg-s-- Returns:
-