public final class AtmosphereResourceFactory
extends java.lang.Object
AtmosphereResource instance. You can use that factory to create, remove and find
AtmosphereResource instance that are associated with one or several Broadcaster.| 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)
AtmosphereResourceImplconfig - an AtmosphereConfigbroadcaster - a Broadcasterresponse - an AtmosphereResponsea - AsyncSupporthandler - an AtmosphereHandlerAtmosphereResourceImplpublic final AtmosphereResource create(AtmosphereConfig config, Broadcaster broadcaster, AtmosphereResponse response, AsyncSupport<?> a, AtmosphereHandler handler)
AtmosphereResourceImplconfig - an AtmosphereConfigbroadcaster - a Broadcasterresponse - an AtmosphereResponsea - AsyncSupporthandler - an AtmosphereHandlerAtmosphereResourceImplpublic final AtmosphereResource create(AtmosphereConfig config, AtmosphereResponse response, AsyncSupport<?> a)
AtmosphereResourceImplconfig - an AtmosphereConfigresponse - an AtmosphereResponsea - AsyncSupportAtmosphereResourceImplpublic final AtmosphereResource create(AtmosphereConfig config, java.lang.String uuid)
AtmosphereResource associated with the uuid.config - an AtmosphereConfiguuid - a String representing a UUIDpublic final AtmosphereResource remove(java.lang.String uuid)
AtmosphereResource from all instance of Broadcasteruuid - the AtmosphereResource.uuid()AtmosphereResource, or null if not found.public final AtmosphereResource find(java.lang.String uuid)
AtmosphereResource based on its AtmosphereResource.uuid()uuid - the AtmosphereResource.uuid()AtmosphereResource, or null if not found.public static final AtmosphereResourceFactory getDefault()
Copyright © 2018. All Rights Reserved.