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 static final AtmosphereResourceFactory getDefault()
Copyright © 2013. All Rights Reserved.