public class DefaultAtmosphereResourceFactory extends AtmosphereResourceFactory
AtmosphereResource instances. You can use this factory to create, remove and find
AtmosphereResource instances that are associated with one or several Broadcasters.| Constructor and Description |
|---|
DefaultAtmosphereResourceFactory() |
getDefaultpublic void configure(AtmosphereConfig config)
configure in class AtmosphereResourceFactorypublic AtmosphereResource create(AtmosphereConfig config, AtmosphereRequest request, AtmosphereResponse response, AsyncSupport<?> a)
AtmosphereResourceImplcreate in class AtmosphereResourceFactoryconfig - an AtmosphereConfigrequest - an AtmosphereResponsea - AsyncSupportAtmosphereResourceImplpublic 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 AtmosphereHandlerAtmosphereResourceImplpublic 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.TRANSPORTAtmosphereResourceImplpublic 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 AtmosphereHandlerAtmosphereResourceImplpublic AtmosphereResource create(AtmosphereConfig config, Broadcaster broadcaster, AtmosphereResponse response, AsyncSupport<?> a, AtmosphereHandler handler, AtmosphereResource.TRANSPORT t)
create in class AtmosphereResourceFactorypublic AtmosphereResource create(AtmosphereConfig config, AtmosphereResponse response, AsyncSupport<?> a)
AtmosphereResourceImpl.create in class AtmosphereResourceFactoryconfig - an AtmosphereConfigresponse - an AtmosphereResponsea - AsyncSupportAtmosphereResourceImplpublic AtmosphereResource create(AtmosphereConfig config, String uuid)
AtmosphereResource associated with the uuid.create in class AtmosphereResourceFactoryconfig - an AtmosphereConfiguuid - a String representing a UUIDpublic 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 AtmosphereRequestpublic 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 AtmosphereResourceFactoryCopyright © 2016. All Rights Reserved.