org.atmosphere.socketio.transport
Class SocketIOSessionManagerImpl

java.lang.Object
  extended by org.atmosphere.socketio.transport.SocketIOSessionManagerImpl
All Implemented Interfaces:
SocketIOSessionFactory, SocketIOSessionManager

public class SocketIOSessionManagerImpl
extends Object
implements SocketIOSessionManager, SocketIOSessionFactory

Author:
Sebastien Dionne : sebastien.dionne@gmail.com

Nested Class Summary
static class SocketIOSessionManagerImpl.ConnectionState
          Connection state based on Jetty for the connection's state
static class SocketIOSessionManagerImpl.SocketIOProtocol
           
 
Field Summary
static org.codehaus.jackson.map.ObjectMapper mapper
           
 
Constructor Summary
SocketIOSessionManagerImpl()
           
 
Method Summary
 SocketIOSession createSession(AtmosphereResourceImpl resource, AtmosphereHandler inbound)
           
 long getHeartbeatInterval()
           
 long getRequestSuspendTime()
           
 SocketIOSession getSession(String sessionId)
           
 long getTimeout()
           
 void setHeartbeatInterval(long interval)
           
 void setRequestSuspendTime(long suspendTime)
           
 void setTimeout(long timeout)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

mapper

public static final org.codehaus.jackson.map.ObjectMapper mapper
Constructor Detail

SocketIOSessionManagerImpl

public SocketIOSessionManagerImpl()
Method Detail

createSession

public SocketIOSession createSession(AtmosphereResourceImpl resource,
                                     AtmosphereHandler inbound)
Specified by:
createSession in interface SocketIOSessionFactory
Returns:

getSession

public SocketIOSession getSession(String sessionId)
Specified by:
getSession in interface SocketIOSessionFactory
Returns:

setTimeout

public void setTimeout(long timeout)
Specified by:
setTimeout in interface SocketIOSessionManager

getTimeout

public long getTimeout()
Specified by:
getTimeout in interface SocketIOSessionManager
Returns:

setHeartbeatInterval

public void setHeartbeatInterval(long interval)
Specified by:
setHeartbeatInterval in interface SocketIOSessionManager

getHeartbeatInterval

public long getHeartbeatInterval()
Specified by:
getHeartbeatInterval in interface SocketIOSessionManager
Returns:

setRequestSuspendTime

public void setRequestSuspendTime(long suspendTime)
Specified by:
setRequestSuspendTime in interface SocketIOSessionManager

getRequestSuspendTime

public long getRequestSuspendTime()
Specified by:
getRequestSuspendTime in interface SocketIOSessionManager
Returns:


Copyright © 2012. All Rights Reserved.