public class DefaultAtmosphereResourceSessionFactory extends AtmosphereResourceSessionFactory
| Constructor and Description |
|---|
DefaultAtmosphereResourceSessionFactory() |
| Modifier and Type | Method and Description |
|---|---|
protected AtmosphereResourceEventListener |
getDisconnectListener()
Used in testing
|
AtmosphereResourceSession |
getSession(AtmosphereResource r,
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. |
getDefault, getSessionpublic DefaultAtmosphereResourceSessionFactory()
public AtmosphereResourceSession getSession(AtmosphereResource r, boolean create)
AtmosphereResourceSessionFactoryAtmosphereResource 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.getSession in class AtmosphereResourceSessionFactoryr - An AtmosphereResourcecreate - true to create a new session if necessary; false to return
null if there's no current sessionprotected AtmosphereResourceEventListener getDisconnectListener()
Copyright © 2018. All Rights Reserved.