Class SocketIOSessionManagerImpl
- java.lang.Object
-
- org.atmosphere.socketio.transport.SocketIOSessionManagerImpl
-
- All Implemented Interfaces:
SocketIOSessionFactory,SocketIOSessionManager
public class SocketIOSessionManagerImpl extends java.lang.Object implements SocketIOSessionManager, SocketIOSessionFactory
- Author:
- Sebastien Dionne : sebastien.dionne@gmail.com
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSocketIOSessionManagerImpl.ConnectionStateConnection state based on Jetty for the connection's statestatic classSocketIOSessionManagerImpl.SocketIOProtocol
-
Field Summary
Fields Modifier and Type Field Description static com.fasterxml.jackson.databind.ObjectMappermapper
-
Constructor Summary
Constructors Constructor Description SocketIOSessionManagerImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SocketIOSessioncreateSession(org.atmosphere.cpr.AtmosphereResourceImpl resource, org.atmosphere.cpr.AtmosphereHandler inbound)longgetHeartbeatInterval()longgetRequestSuspendTime()SocketIOSessiongetSession(java.lang.String sessionId)longgetTimeout()voidsetHeartbeatInterval(long interval)voidsetRequestSuspendTime(long suspendTime)voidsetTimeout(long timeout)
-
-
-
Method Detail
-
createSession
public SocketIOSession createSession(org.atmosphere.cpr.AtmosphereResourceImpl resource, org.atmosphere.cpr.AtmosphereHandler inbound)
- Specified by:
createSessionin interfaceSocketIOSessionFactory- Returns:
-
getSession
public SocketIOSession getSession(java.lang.String sessionId)
- Specified by:
getSessionin interfaceSocketIOSessionFactory- Returns:
-
setTimeout
public void setTimeout(long timeout)
- Specified by:
setTimeoutin interfaceSocketIOSessionManager
-
getTimeout
public long getTimeout()
- Specified by:
getTimeoutin interfaceSocketIOSessionManager- Returns:
-
setHeartbeatInterval
public void setHeartbeatInterval(long interval)
- Specified by:
setHeartbeatIntervalin interfaceSocketIOSessionManager
-
getHeartbeatInterval
public long getHeartbeatInterval()
- Specified by:
getHeartbeatIntervalin interfaceSocketIOSessionManager- Returns:
-
setRequestSuspendTime
public void setRequestSuspendTime(long suspendTime)
- Specified by:
setRequestSuspendTimein interfaceSocketIOSessionManager
-
getRequestSuspendTime
public long getRequestSuspendTime()
- Specified by:
getRequestSuspendTimein interfaceSocketIOSessionManager- Returns:
-
-