|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface SocketIOSession
| Method Summary | |
|---|---|
void |
clearHeartbeatTimer()
|
void |
clearTimeoutTimer()
|
String |
generateRandomString(int length)
Generate the session id |
org.atmosphere.cpr.AtmosphereHandler |
getAtmosphereHandler()
|
org.atmosphere.cpr.AtmosphereResourceImpl |
getAtmosphereResourceImpl()
|
long |
getHeartbeat()
|
long |
getRequestSuspendTime()
|
String |
getSessionId()
|
long |
getTimeout()
|
SocketIOSessionOutbound |
getTransportHandler()
|
void |
onClose(String data)
|
void |
onConnect(org.atmosphere.cpr.AtmosphereResourceImpl resource,
SocketIOSessionOutbound handler)
|
void |
onDisconnect(DisconnectReason reason)
Pass disconnect through to contained SocketIOInbound and update any internal state. |
void |
onMessage(org.atmosphere.cpr.AtmosphereResourceImpl resource,
SocketIOSessionOutbound handler,
String message)
Pass message through to contained SocketIOInbound If a timeout timer is set, then it will be reset. |
void |
onShutdown()
Called by handler to report that it is done and the session can be cleaned up. |
void |
sendHeartBeat()
|
void |
setAtmosphereResourceImpl(org.atmosphere.cpr.AtmosphereResourceImpl resource)
|
void |
setHeartbeat(long delay)
|
void |
setRequestSuspendTime(long suspendTime)
|
void |
setTimeout(long timeout)
|
void |
startClose()
Initiate close. |
void |
startHeartbeatTimer()
|
void |
startTimeoutTimer()
|
void |
timeout()
|
| Method Detail |
|---|
String generateRandomString(int length)
length - session id length
String getSessionId()
org.atmosphere.cpr.AtmosphereHandler getAtmosphereHandler()
org.atmosphere.cpr.AtmosphereResourceImpl getAtmosphereResourceImpl()
void setAtmosphereResourceImpl(org.atmosphere.cpr.AtmosphereResourceImpl resource)
resource - SocketIOSessionOutbound getTransportHandler()
void setHeartbeat(long delay)
delay - long getHeartbeat()
void sendHeartBeat()
void setTimeout(long timeout)
timeout - long getTimeout()
void timeout()
void startTimeoutTimer()
void clearTimeoutTimer()
void startHeartbeatTimer()
void clearHeartbeatTimer()
void setRequestSuspendTime(long suspendTime)
suspendTime - long getRequestSuspendTime()
void startClose()
void onClose(String data)
data -
void onConnect(org.atmosphere.cpr.AtmosphereResourceImpl resource,
SocketIOSessionOutbound handler)
handler - The handler or null if the connection failed.
void onMessage(org.atmosphere.cpr.AtmosphereResourceImpl resource,
SocketIOSessionOutbound handler,
String message)
message - void onDisconnect(DisconnectReason reason)
reason - void onShutdown()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||