- Author:
- Jeanfrancois Arcand
|
Method Summary |
MetaBroadcaster |
addBroadcasterListener(BroadcasterListener b)
Add a BroadcasterListener to all mapped Broadcasters. |
protected org.atmosphere.cpr.MetaBroadcaster.MetaBroadcasterFuture |
broadcast(String path,
Object message,
int time,
TimeUnit unit,
boolean delay)
|
Future<List<Broadcaster>> |
broadcastTo(String broadcasterID,
Object message)
Broadcast the message to all Broadcasters whose Broadcaster.getID() matches the broadcasterID value. |
Future<List<Broadcaster>> |
delayTo(String broadcasterID,
Object message,
int time,
TimeUnit unit)
Delay the message delivery to Broadcasters whose Broadcaster.getID()
matches the broadcasterID value. |
static MetaBroadcaster |
getDefault()
|
protected org.atmosphere.cpr.MetaBroadcaster.MetaBroadcasterFuture |
map(String path,
Object message,
int time,
TimeUnit unit,
boolean delay)
|
MetaBroadcaster |
removeBroadcasterListener(BroadcasterListener b)
Remove the BroadcasterListener. |
Future<List<Broadcaster>> |
scheduleTo(String broadcasterID,
Object message,
int time,
TimeUnit unit)
Broadcast the message at a fixed rate to all Broadcasters whose Broadcaster.getID()
matches the broadcasterID value. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MAPPING_REGEX
public static final String MAPPING_REGEX
- See Also:
- Constant Field Values
MetaBroadcaster
public MetaBroadcaster()
broadcast
protected org.atmosphere.cpr.MetaBroadcaster.MetaBroadcasterFuture broadcast(String path,
Object message,
int time,
TimeUnit unit,
boolean delay)
map
protected org.atmosphere.cpr.MetaBroadcaster.MetaBroadcasterFuture map(String path,
Object message,
int time,
TimeUnit unit,
boolean delay)
broadcastTo
public Future<List<Broadcaster>> broadcastTo(String broadcasterID,
Object message)
- Broadcast the message to all Broadcasters whose
Broadcaster.getID() matches the broadcasterID value.
- Parameters:
broadcasterID - a String (or path) that can potentially match a Broadcaster.getID()message - a message to be broadcasted
- Returns:
- a Future
scheduleTo
public Future<List<Broadcaster>> scheduleTo(String broadcasterID,
Object message,
int time,
TimeUnit unit)
- Broadcast the message at a fixed rate to all Broadcasters whose
Broadcaster.getID()
matches the broadcasterID value. This operation will invoke Broadcaster.scheduleFixedBroadcast(Object, long, java.util.concurrent.TimeUnit)}
- Parameters:
broadcasterID - a String (or path) that can potentially match a Broadcaster.getID()message - a message to be broadcastedtime - a time valueunit - a TimeUnit
- Returns:
- a Future
delayTo
public Future<List<Broadcaster>> delayTo(String broadcasterID,
Object message,
int time,
TimeUnit unit)
- Delay the message delivery to Broadcasters whose
Broadcaster.getID()
matches the broadcasterID value. This operation will invoke Broadcaster.delayBroadcast(Object, long, java.util.concurrent.TimeUnit) (Object, long, java.util.concurrent.TimeUnit)}}
- Parameters:
broadcasterID - a String (or path) that can potentially match a Broadcaster.getID()message - a message to be broadcastedtime - a time valueunit - a TimeUnit
- Returns:
- a Future
getDefault
public static final MetaBroadcaster getDefault()
addBroadcasterListener
public MetaBroadcaster addBroadcasterListener(BroadcasterListener b)
- Add a
BroadcasterListener to all mapped Broadcasters.
- Parameters:
b - BroadcasterListener
- Returns:
- this
removeBroadcasterListener
public MetaBroadcaster removeBroadcasterListener(BroadcasterListener b)
- Remove the
BroadcasterListener.
- Parameters:
b - BroadcasterListener
- Returns:
- this
Copyright © 2013. All Rights Reserved.