public interface AtmosphereResourceSessionFactory
AtmosphereResourceSession instances| Modifier and Type | Method and Description |
|---|---|
void |
destroy() |
AtmosphereResourceSession |
getSession(AtmosphereResource resource)
Returns the current session associated with the
AtmosphereResource, or creates one if it does not yet exist. |
AtmosphereResourceSession |
getSession(AtmosphereResource resource,
boolean create)
Returns the current session associated with the
AtmosphereResource or, if there is no current session and create
is true, returns a new session. |
AtmosphereResourceSession getSession(AtmosphereResource resource, boolean create)
AtmosphereResource or, if there is no current session and create
is true, returns a new session.
If create is false and the request has no valid HttpSession, this method
returns null.resource - An AtmosphereResourcecreate - true to create a new session if necessary; false to return
null if there's no current sessionAtmosphereResourceSession getSession(AtmosphereResource resource)
AtmosphereResource, or creates one if it does not yet exist.resource - An AtmosphereResourceAtmosphereResource, or creates one if it does not yet
exist.void destroy()
Copyright © 2016. All rights reserved.