|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.atmosphere.cpr.AtmosphereResourceFactory
public final class AtmosphereResourceFactory
A Factory used to manage AtmosphereResource instances. You can use this factory to create, remove and find
AtmosphereResource instances that are associated with one or several Broadcasters.
| Constructor Summary | |
|---|---|
AtmosphereResourceFactory()
|
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AtmosphereResourceFactory()
| Method Detail |
|---|
public final AtmosphereResource create(AtmosphereConfig config,
AtmosphereRequest request,
AtmosphereResponse response,
AsyncSupport<?> a)
AtmosphereResourceImpl
config - an AtmosphereConfigrequest - an AtmosphereResponsea - AsyncSupport
AtmosphereResourceImpl
public final AtmosphereResource create(AtmosphereConfig config,
Broadcaster broadcaster,
AtmosphereRequest request,
AtmosphereResponse response,
AsyncSupport<?> a,
AtmosphereHandler handler)
AtmosphereResourceImpl.
config - an AtmosphereConfigbroadcaster - a Broadcasterresponse - an AtmosphereResponsea - AsyncSupporthandler - an AtmosphereHandler
AtmosphereResourceImpl
public final AtmosphereResource create(AtmosphereConfig config,
Broadcaster broadcaster,
AtmosphereResponse response,
AsyncSupport<?> a,
AtmosphereHandler handler)
AtmosphereResourceImpl.
config - an AtmosphereConfigbroadcaster - a Broadcasterresponse - an AtmosphereResponsea - AsyncSupporthandler - an AtmosphereHandler
AtmosphereResourceImpl
public final AtmosphereResource create(AtmosphereConfig config,
AtmosphereResponse response,
AsyncSupport<?> a)
AtmosphereResourceImpl.
config - an AtmosphereConfigresponse - an AtmosphereResponsea - AsyncSupport
AtmosphereResourceImpl
public final AtmosphereResource create(AtmosphereConfig config,
String uuid)
AtmosphereResource associated with the uuid.
config - an AtmosphereConfiguuid - a String representing a UUID
public final AtmosphereResource remove(String uuid)
AtmosphereResource from all instances of Broadcaster.
uuid - the AtmosphereResource.uuid()
AtmosphereResource, or null if not found.public final AtmosphereResource find(String uuid)
AtmosphereResource based on its AtmosphereResource.uuid().
uuid - the AtmosphereResource.uuid()
AtmosphereResource, or null if not found.public final Set<Broadcaster> broadcasters(String uuid)
Broadcaster associated with a AtmosphereResource.uuid(), e.g for which
Broadcaster.addAtmosphereResource(AtmosphereResource) has been called. Note that this
method is not synchronized and may not return all the Broadcaster in case
Broadcaster.addAtmosphereResource(AtmosphereResource) is being called concurrently.
uuid - the AtmosphereResource.uuid()
Broadcaster associated with a AtmosphereResource.uuid()public static final AtmosphereResourceFactory getDefault()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||