|
||||||||||
| 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 instance. You can use that factory to create, remove and find
AtmosphereResource instance that are associated with one or several Broadcaster.
| Constructor Summary | |
|---|---|
AtmosphereResourceFactory()
|
|
| Method Summary | |
|---|---|
AtmosphereResource |
create(AtmosphereConfig config,
AtmosphereRequest request,
AtmosphereResponse response,
AsyncSupport<?> a)
Create an AtmosphereResourceImpl |
AtmosphereResource |
create(AtmosphereConfig config,
AtmosphereResponse response,
AsyncSupport<?> a)
Create an AtmosphereResourceImpl |
AtmosphereResource |
create(AtmosphereConfig config,
Broadcaster broadcaster,
AtmosphereRequest request,
AtmosphereResponse response,
AsyncSupport<?> a,
AtmosphereHandler handler)
Create an AtmosphereResourceImpl |
AtmosphereResource |
create(AtmosphereConfig config,
Broadcaster broadcaster,
AtmosphereResponse response,
AsyncSupport<?> a,
AtmosphereHandler handler)
Create an AtmosphereResourceImpl |
AtmosphereResource |
find(String uuid)
Find an AtmosphereResource based on its AtmosphereResource.uuid() |
static AtmosphereResourceFactory |
getDefault()
|
AtmosphereResource |
remove(String uuid)
Remove the AtmosphereResource from all instance of Broadcaster |
| 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
AtmosphereResourceImplpublic final AtmosphereResource remove(String uuid)
AtmosphereResource from all instance 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 static final AtmosphereResourceFactory getDefault()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||