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:
Broadcaster

public class RedisBroadcaster
extends AbstractBroadcasterProxy

Simple Broadcaster implementation based on Jedis

Author:
Jeanfrancois Arcand

Nested Class Summary
 
Nested classes/interfaces inherited from class org.atmosphere.cpr.DefaultBroadcaster
DefaultBroadcaster.AsyncWriteToken, 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
ASYNC_TOKEN, asyncWriteFuture, asyncWriteQueue, bc, broadcasterCache, broadcastOnResume, CACHED, cacheStrategy, config, delayedBroadcast, destroyed, lifeCycleListeners, messages, name, notifierFuture, resources, scope, started, uri
 
Constructor Summary
RedisBroadcaster(String id, AtmosphereConfig config)
           
RedisBroadcaster(String id, URI uri, 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, broadcast, broadcastReceivedMessage, getBroadcastHandler, reconfigure
 
Methods inherited from class org.atmosphere.cpr.DefaultBroadcaster
addAtmosphereResource, addBroadcasterLifeCyclePolicyListener, awaitAndBroadcast, broadcastOnResume, broadcastOnResume, cacheLostMessage, cacheLostMessage, checkCachedAndPush, createBroadcasterConfig, delayBroadcast, delayBroadcast, executeAsyncWrite, filter, getAsyncWriteHandler, getAtmosphereResources, getBroadcasterConfig, getID, getScope, isDestroyed, onException, perRequestFilter, push, push, queueWriteIO, releaseExternalResources, removeAtmosphereResource, removeBroadcasterLifeCyclePolicyListener, resumeAll, retrieveTrackedBroadcast, scheduleFixedBroadcast, scheduleFixedBroadcast, setBroadcasterConfig, setBroadcasterLifeCyclePolicy, setScope, setSuspendPolicy, 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,
                        AtmosphereConfig config)

RedisBroadcaster

public RedisBroadcaster(String id,
                        URI uri,
                        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 Broadcaster
Overrides:
setID in class DefaultBroadcaster

destroy

public void destroy()

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

incomingBroadcast

public void incomingBroadcast()

Specified by:
incomingBroadcast in class AbstractBroadcasterProxy

outgoingBroadcast

public void outgoingBroadcast(Object message)

Specified by:
outgoingBroadcast in class AbstractBroadcasterProxy


Copyright © 2012. All Rights Reserved.