|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.atmosphere.cpr.AtmosphereResourceFactory
org.atmosphere.cpr.DefaultAtmosphereResourceFactory
public class DefaultAtmosphereResourceFactory
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 | |
|---|---|
DefaultAtmosphereResourceFactory()
|
|
| Methods inherited from class org.atmosphere.cpr.AtmosphereResourceFactory |
|---|
getDefault |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultAtmosphereResourceFactory()
| Method Detail |
|---|
public void configure(AtmosphereConfig config)
configure in class AtmosphereResourceFactory
public AtmosphereResource create(AtmosphereConfig config,
AtmosphereRequest request,
AtmosphereResponse response,
AsyncSupport<?> a)
AtmosphereResourceImpl
create in class AtmosphereResourceFactoryconfig - an AtmosphereConfigrequest - an AtmosphereResponsea - AsyncSupport
AtmosphereResourceImpl
public AtmosphereResource create(AtmosphereConfig config,
Broadcaster broadcaster,
AtmosphereRequest request,
AtmosphereResponse response,
AsyncSupport<?> a,
AtmosphereHandler handler)
AtmosphereResourceImpl.
create in class AtmosphereResourceFactoryconfig - an AtmosphereConfigbroadcaster - a Broadcasterresponse - an AtmosphereResponsea - AsyncSupporthandler - an AtmosphereHandler
AtmosphereResourceImpl
public AtmosphereResource create(AtmosphereConfig config,
Broadcaster broadcaster,
AtmosphereRequest request,
AtmosphereResponse response,
AsyncSupport<?> a,
AtmosphereHandler handler,
AtmosphereResource.TRANSPORT t)
AtmosphereResourceImpl.
create in class AtmosphereResourceFactoryconfig - an AtmosphereConfigbroadcaster - a Broadcasterresponse - an AtmosphereResponsea - AsyncSupporthandler - an AtmosphereHandlert - an AtmosphereResource.TRANSPORT
AtmosphereResourceImpl
public AtmosphereResource create(AtmosphereConfig config,
Broadcaster broadcaster,
AtmosphereResponse response,
AsyncSupport<?> a,
AtmosphereHandler handler)
AtmosphereResourceImpl.
create in class AtmosphereResourceFactoryconfig - an AtmosphereConfigbroadcaster - a Broadcasterresponse - an AtmosphereResponsea - AsyncSupporthandler - an AtmosphereHandler
AtmosphereResourceImpl
public AtmosphereResource create(AtmosphereConfig config,
Broadcaster broadcaster,
AtmosphereResponse response,
AsyncSupport<?> a,
AtmosphereHandler handler,
AtmosphereResource.TRANSPORT t)
create in class AtmosphereResourceFactory
public AtmosphereResource create(AtmosphereConfig config,
AtmosphereResponse response,
AsyncSupport<?> a)
AtmosphereResourceImpl.
create in class AtmosphereResourceFactoryconfig - an AtmosphereConfigresponse - an AtmosphereResponsea - AsyncSupport
AtmosphereResourceImpl
public AtmosphereResource create(AtmosphereConfig config,
String uuid)
AtmosphereResource associated with the uuid.
create in class AtmosphereResourceFactoryconfig - an AtmosphereConfiguuid - a String representing a UUID
public AtmosphereResource create(AtmosphereConfig config,
String uuid,
AtmosphereRequest request)
AtmosphereResource associated with the uuid.
create in class AtmosphereResourceFactoryconfig - an AtmosphereConfiguuid - a String representing a UUIDrequest - a AtmosphereRequest
public AtmosphereResource remove(String uuid)
AtmosphereResource from all instances of Broadcaster.
remove in class AtmosphereResourceFactoryuuid - the AtmosphereResource.uuid()
AtmosphereResource, or null if not found.public AtmosphereResource find(String uuid)
AtmosphereResource based on its AtmosphereResource.uuid().
find in class AtmosphereResourceFactoryuuid - the AtmosphereResource.uuid()
AtmosphereResource, or null if not found.public 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.
broadcasters in class AtmosphereResourceFactoryuuid - the AtmosphereResource.uuid()
Broadcaster associated with a AtmosphereResource.uuid()public void registerUuidForFindCandidate(AtmosphereResource r)
AtmosphereResource for being a candidate to find(String) operation.
registerUuidForFindCandidate in class AtmosphereResourceFactoryr - AtmosphereResourcepublic void unRegisterUuidForFindCandidate(AtmosphereResource r)
AtmosphereResource for being a candidate to find(String) operation.
unRegisterUuidForFindCandidate in class AtmosphereResourceFactoryr - AtmosphereResourcepublic void destroy()
destroy in class AtmosphereResourceFactorypublic ConcurrentMap<String,AtmosphereResource> resources()
resources in class AtmosphereResourceFactorypublic Collection<AtmosphereResource> findAll()
findAll in class AtmosphereResourceFactory
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||