public abstract class AtmosphereResourceFactory
extends java.lang.Object
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 |
|---|
AtmosphereResourceFactory() |
@Deprecated public static AtmosphereResourceFactory getDefault()
AtmosphereConfig.resourcesFactory()insteadpublic abstract void configure(AtmosphereConfig config)
public abstract AtmosphereResource create(AtmosphereConfig config, AtmosphereRequest request, AtmosphereResponse response, AsyncSupport<?> a)
AtmosphereResourceImplconfig - an AtmosphereConfigrequest - an AtmosphereResponsea - AsyncSupportAtmosphereResourceImplpublic abstract AtmosphereResource create(AtmosphereConfig config, Broadcaster broadcaster, AtmosphereRequest request, AtmosphereResponse response, AsyncSupport<?> a, AtmosphereHandler handler)
AtmosphereResourceImpl.config - an AtmosphereConfigbroadcaster - a Broadcasterresponse - an AtmosphereResponsea - AsyncSupporthandler - an AtmosphereHandlerAtmosphereResourceImplpublic abstract AtmosphereResource create(AtmosphereConfig config, Broadcaster broadcaster, AtmosphereRequest request, AtmosphereResponse response, AsyncSupport<?> a, AtmosphereHandler handler, AtmosphereResource.TRANSPORT t)
AtmosphereResourceImpl.config - an AtmosphereConfigbroadcaster - a Broadcasterresponse - an AtmosphereResponsea - AsyncSupporthandler - an AtmosphereHandlert - an AtmosphereResource.TRANSPORTAtmosphereResourceImplpublic abstract AtmosphereResource create(AtmosphereConfig config, Broadcaster broadcaster, AtmosphereResponse response, AsyncSupport<?> a, AtmosphereHandler handler)
AtmosphereResourceImpl.config - an AtmosphereConfigbroadcaster - a Broadcasterresponse - an AtmosphereResponsea - AsyncSupporthandler - an AtmosphereHandlerAtmosphereResourceImplpublic abstract AtmosphereResource create(AtmosphereConfig config, Broadcaster broadcaster, AtmosphereResponse response, AsyncSupport<?> a, AtmosphereHandler handler, AtmosphereResource.TRANSPORT t)
public abstract AtmosphereResource create(AtmosphereConfig config, AtmosphereResponse response, AsyncSupport<?> a)
AtmosphereResourceImpl.config - an AtmosphereConfigresponse - an AtmosphereResponsea - AsyncSupportAtmosphereResourceImplpublic abstract AtmosphereResource create(AtmosphereConfig config, java.lang.String uuid)
AtmosphereResource associated with the uuid.config - an AtmosphereConfiguuid - a String representing a UUIDpublic abstract AtmosphereResource create(AtmosphereConfig config, java.lang.String uuid, AtmosphereRequest request)
AtmosphereResource associated with the uuid.config - an AtmosphereConfiguuid - a String representing a UUIDrequest - a AtmosphereRequestpublic abstract AtmosphereResource remove(java.lang.String uuid)
AtmosphereResource from all instances of Broadcaster.uuid - the AtmosphereResource.uuid()AtmosphereResource, or null if not found.public abstract AtmosphereResource find(java.lang.String uuid)
AtmosphereResource based on its AtmosphereResource.uuid().uuid - the AtmosphereResource.uuid()AtmosphereResource, or null if not found.public abstract java.util.Set<Broadcaster> broadcasters(java.lang.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 abstract void registerUuidForFindCandidate(AtmosphereResource r)
AtmosphereResource for being a candidate to find(String) operation.r - AtmosphereResourcepublic abstract void unRegisterUuidForFindCandidate(AtmosphereResource r)
AtmosphereResource for being a candidate to find(String) operation.r - AtmosphereResourcepublic abstract void destroy()
public abstract java.util.concurrent.ConcurrentMap<java.lang.String,AtmosphereResource> resources()
public abstract java.util.Collection<AtmosphereResource> findAll()
Copyright © 2018. All Rights Reserved.