public final class AtmosphereResourceFactory extends 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() |
public final AtmosphereResource create(AtmosphereConfig config, AtmosphereRequest request, AtmosphereResponse response, AsyncSupport<?> a)
AtmosphereResourceImplconfig - an AtmosphereConfigrequest - an AtmosphereResponsea - AsyncSupportAtmosphereResourceImplpublic 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 AtmosphereHandlerAtmosphereResourceImplpublic final AtmosphereResource create(AtmosphereConfig config, Broadcaster broadcaster, AtmosphereResponse response, AsyncSupport<?> a, AtmosphereHandler handler)
AtmosphereResourceImpl.config - an AtmosphereConfigbroadcaster - a Broadcasterresponse - an AtmosphereResponsea - AsyncSupporthandler - an AtmosphereHandlerAtmosphereResourceImplpublic final AtmosphereResource create(AtmosphereConfig config, AtmosphereResponse response, AsyncSupport<?> a)
AtmosphereResourceImpl.config - an AtmosphereConfigresponse - an AtmosphereResponsea - AsyncSupportAtmosphereResourceImplpublic final AtmosphereResource create(AtmosphereConfig config, String uuid)
AtmosphereResource associated with the uuid.config - an AtmosphereConfiguuid - a String representing a UUIDpublic 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()
Copyright © 2015. All Rights Reserved.