org.atmosphere.plugin.jgroups
Class JGroupsBroadcaster

java.lang.Object
  extended by org.atmosphere.cpr.DefaultBroadcaster
      extended by org.atmosphere.util.AbstractBroadcasterProxy
          extended by org.atmosphere.plugin.jgroups.JGroupsBroadcaster
All Implemented Interfaces:
Broadcaster, Trackable

public class JGroupsBroadcaster
extends AbstractBroadcasterProxy

Simple Broadcaster implementation based on JGroups

Author:
Jeanfrancois Arcand

Nested Class Summary
static class JGroupsBroadcaster.BroadcastMessage
           
 
Nested classes/interfaces inherited from class org.atmosphere.cpr.DefaultBroadcaster
DefaultBroadcaster.Entry
 
Nested classes/interfaces inherited from interface org.atmosphere.cpr.Broadcaster
Broadcaster.POLICY, Broadcaster.SCOPE
 
Field Summary
 
Fields inherited from class org.atmosphere.cpr.DefaultBroadcaster
asyncWriteFuture, asyncWriteQueue, bc, broadcasterCache, broadcastOnResume, CACHED, config, delayedBroadcast, destroyed, lifeCycleListeners, messages, name, notifierFuture, resources, scope, started, uri
 
Constructor Summary
JGroupsBroadcaster(String id, AtmosphereServlet.AtmosphereConfig config)
           
 
Method Summary
 void destroy()
          
 void incomingBroadcast()
           
 void outgoingBroadcast(Object message)
          
 
Methods inherited from class org.atmosphere.util.AbstractBroadcasterProxy
broadcast, broadcast, broadcast, broadcast, broadcastReceivedMessage, getBroadcastHandler, reconfigure
 
Methods inherited from class org.atmosphere.cpr.DefaultBroadcaster
addAtmosphereResource, addBroadcasterLifeCyclePolicyListener, broadcastOnResume, broadcastOnResume, checkCachedAndPush, delayBroadcast, delayBroadcast, executeAsyncWrite, filter, getAsyncWriteHandler, getAtmosphereResources, getBroadcasterConfig, getID, getScope, isDestroyed, onException, perRequestFilter, push, queueWriteIO, releaseExternalResources, removeAtmosphereResource, removeBroadcasterLifeCyclePolicyListener, resumeAll, retrieveTrackedBroadcast, scheduleFixedBroadcast, scheduleFixedBroadcast, setBroadcasterConfig, setBroadcasterLifeCyclePolicy, setID, setScope, setSuspendPolicy, start, toString, trackBroadcastMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

JGroupsBroadcaster

public JGroupsBroadcaster(String id,
                          AtmosphereServlet.AtmosphereConfig config)
Method Detail

incomingBroadcast

public void incomingBroadcast()
Specified by:
incomingBroadcast in class AbstractBroadcasterProxy

outgoingBroadcast

public void outgoingBroadcast(Object message)

Specified by:
outgoingBroadcast in class AbstractBroadcasterProxy

destroy

public void destroy()

Specified by:
destroy in interface Broadcaster
Overrides:
destroy in class DefaultBroadcaster


Copyright © 2011. All Rights Reserved.