org.atmosphere.plugin.redis
Class RedisBroadcaster

java.lang.Object
  extended by org.atmosphere.cpr.DefaultBroadcaster
      extended by org.atmosphere.util.AbstractBroadcasterProxy
          extended by org.atmosphere.plugin.redis.RedisBroadcaster
All Implemented Interfaces:
org.atmosphere.cpr.Broadcaster

public class RedisBroadcaster
extends org.atmosphere.util.AbstractBroadcasterProxy

Simple Broadcaster implementation based on Jedis

Author:
Jeanfrancois Arcand

Nested Class Summary
 
Nested classes/interfaces inherited from class org.atmosphere.cpr.DefaultBroadcaster
org.atmosphere.cpr.DefaultBroadcaster.AsyncWriteToken, org.atmosphere.cpr.DefaultBroadcaster.Entry
 
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, cacheStrategy, config, delayedBroadcast, destroyed, dispatchThread, lifeCycleListeners, messages, name, noOpsResource, notifierFuture, resources, scope, started, uniqueWriteQueue, uri, uuidCache, waitTime, writeQueues, writeTimeoutInSecond
 
Constructor Summary
RedisBroadcaster(String id, org.atmosphere.cpr.AtmosphereConfig config)
           
RedisBroadcaster(URI uri, String id, org.atmosphere.cpr.AtmosphereConfig config)
           
 
Method Summary
 void destroy()
          
 String getAuth()
           
 void incomingBroadcast()
          
 void outgoingBroadcast(Object message)
          
 void setAuth(String auth)
           
 void setID(String id)
           
 void setUp()
           
 
Methods inherited from class org.atmosphere.util.AbstractBroadcasterProxy
broadcast, broadcast, broadcast, broadcastReceivedMessage, getBroadcastHandler, invokeOnStateChange, reconfigure
 
Methods inherited from class org.atmosphere.cpr.DefaultBroadcaster
addAtmosphereResource, addBroadcasterLifeCyclePolicyListener, addBroadcasterListener, awaitAndBroadcast, broadcastOnResume, broadcastOnResume, cacheLostMessage, cacheLostMessage, cacheLostMessage, cacheLostMessage, checkCachedAndPush, createBroadcasterConfig, delayBroadcast, delayBroadcast, deliverPush, dispatchMessages, entryDone, executeAsyncWrite, filter, futureDone, getAsyncWriteHandler, getAtmosphereResources, getBroadcasterConfig, getID, getScope, isDestroyed, killReactiveThreads, onException, onException, perRequestFilter, perRequestFilter, prepareInvokeOnStateChange, push, queueWriteIO, reactiveThreadsCount, releaseExternalResources, removeAtmosphereResource, removeAtmosphereResource, removeBroadcasterLifeCyclePolicyListener, removeBroadcasterListener, resumeAll, retrieveTrackedBroadcast, scheduleFixedBroadcast, scheduleFixedBroadcast, setBroadcasterCacheStrategy, setBroadcasterConfig, setBroadcasterLifeCyclePolicy, setScope, setSuspendPolicy, spawnReactor, start, toString, trackBroadcastMessage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RedisBroadcaster

public RedisBroadcaster(String id,
                        org.atmosphere.cpr.AtmosphereConfig config)

RedisBroadcaster

public RedisBroadcaster(URI uri,
                        String id,
                        org.atmosphere.cpr.AtmosphereConfig config)
Method Detail

getAuth

public String getAuth()

setAuth

public void setAuth(String auth)

setUp

public void setUp()

setID

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

destroy

public void destroy()

Specified by:
destroy in interface org.atmosphere.cpr.Broadcaster
Overrides:
destroy in class org.atmosphere.cpr.DefaultBroadcaster

incomingBroadcast

public void incomingBroadcast()

Specified by:
incomingBroadcast in class org.atmosphere.util.AbstractBroadcasterProxy

outgoingBroadcast

public void outgoingBroadcast(Object message)

Specified by:
outgoingBroadcast in class org.atmosphere.util.AbstractBroadcasterProxy


Copyright © 2013. All Rights Reserved.