org.atmosphere.plugin.xmpp
Class XMPPBroadcaster

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

public class XMPPBroadcaster
extends org.atmosphere.util.AbstractBroadcasterProxy

Simple Broadcaster implementation based on Smack, and XMPP library.

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.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
XMPPBroadcaster()
           
 
Method Summary
 void destroy()
          
 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)
          
 void setID(String id)
           
 
Methods inherited from class org.atmosphere.util.AbstractBroadcasterProxy
b, broadcast, broadcast, broadcast, broadcastReceivedMessage, getBroadcastHandler, invokeOnStateChange, reconfigure
 
Methods inherited from class org.atmosphere.cpr.DefaultBroadcaster
addAtmosphereResource, addBroadcasterLifeCyclePolicyListener, addBroadcasterListener, awaitAndBroadcast, broadcasterListeners, broadcastOnResume, broadcastOnResume, cacheAndSuspend, cacheLostMessage, cacheLostMessage, cacheLostMessage, cacheLostMessage, checkCachedAndPush, createBroadcasterConfig, delayBroadcast, delayBroadcast, deliverPush, dispatchMessages, endBroadcast, 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, 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

XMPPBroadcaster

public XMPPBroadcaster()
Method Detail

initialize

public org.atmosphere.cpr.Broadcaster initialize(String id,
                                                 org.atmosphere.cpr.AtmosphereConfig config)
Overrides:
initialize in class org.atmosphere.cpr.DefaultBroadcaster

initialize

public org.atmosphere.cpr.Broadcaster initialize(String id,
                                                 URI uri,
                                                 org.atmosphere.cpr.AtmosphereConfig config)
Specified by:
initialize in interface org.atmosphere.cpr.Broadcaster
Overrides:
initialize in class org.atmosphere.util.AbstractBroadcasterProxy

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 © 2014. All Rights Reserved.