|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.atmosphere.util.BroadcasterLookup
public class BroadcasterLookup
A class that can be used to lookup Broadcaster
based on the returned value of Broadcaster.getID() and
Broadcaster.getScope()
| Constructor Summary | |
|---|---|
BroadcasterLookup()
|
|
| Method Summary | |
|---|---|
static boolean |
add(Broadcaster b,
Object id)
Add a Broadcaster to the list. |
static Broadcaster |
build(Class<? extends Broadcaster> c,
Object id)
Create a new instance of Broadcaster and store it for |
static void |
destroy()
Shutdown all Broadcaster |
static Broadcaster |
lookup(Class<? extends Broadcaster> c,
Object id)
Lookup a Broadcaster instance using Broadcaster.getID() or ID
used when invoking {@link BroadcasterLookup#build(java.lang.Class, java.lang.Object)); |
static boolean |
remove(Broadcaster b,
Object id)
Remove a Broadcaster to the list. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public BroadcasterLookup()
| Method Detail |
|---|
public static final Broadcaster lookup(Class<? extends Broadcaster> c,
Object id)
Broadcaster instance using Broadcaster.getID() or ID
used when invoking {@link BroadcasterLookup#build(java.lang.Class, java.lang.Object));
id - The Broadcaster's unique ID, or name.
public static final boolean add(Broadcaster b,
Object id)
Broadcaster to the list.
b - a Broadcaster
Broadcaster was already stored
public static final boolean remove(Broadcaster b,
Object id)
Broadcaster to the list.
b - a Broadcaster
Broadcaster
public static final Broadcaster build(Class<? extends Broadcaster> c,
Object id)
Broadcaster and store it for
c - The Broadcaster class instance.id - The unique ID used to retrieve Broadcaster
Broadcasterpublic static final void destroy()
Broadcaster
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||