jgnash.message
Class MessageBusRemoteClient.ClientSessionHandler

java.lang.Object
  extended by org.apache.mina.common.IoHandlerAdapter
      extended by jgnash.message.MessageBusRemoteClient.ClientSessionHandler
All Implemented Interfaces:
org.apache.mina.common.IoHandler
Enclosing class:
MessageBusRemoteClient

private class MessageBusRemoteClient.ClientSessionHandler
extends org.apache.mina.common.IoHandlerAdapter


Field Summary
private static int FORCED_LATENCY
          Time in milliseconds to force an update latency to ensure client container is current before processing the message
private  java.util.concurrent.ScheduledExecutorService scheduler
           
 
Constructor Summary
private MessageBusRemoteClient.ClientSessionHandler()
           
 
Method Summary
 void exceptionCaught(org.apache.mina.common.IoSession s, java.lang.Throwable cause)
           
 void messageReceived(org.apache.mina.common.IoSession s, java.lang.Object object)
           
 void sessionClosed(org.apache.mina.common.IoSession s)
           
 void sessionOpened(org.apache.mina.common.IoSession s)
           
 
Methods inherited from class org.apache.mina.common.IoHandlerAdapter
messageSent, sessionCreated, sessionIdle
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

scheduler

private final java.util.concurrent.ScheduledExecutorService scheduler

FORCED_LATENCY

private static final int FORCED_LATENCY
Time in milliseconds to force an update latency to ensure client container is current before processing the message

See Also:
Constant Field Values
Constructor Detail

MessageBusRemoteClient.ClientSessionHandler

private MessageBusRemoteClient.ClientSessionHandler()
Method Detail

sessionOpened

public void sessionOpened(org.apache.mina.common.IoSession s)
Specified by:
sessionOpened in interface org.apache.mina.common.IoHandler
Overrides:
sessionOpened in class org.apache.mina.common.IoHandlerAdapter

messageReceived

public void messageReceived(org.apache.mina.common.IoSession s,
                            java.lang.Object object)
Specified by:
messageReceived in interface org.apache.mina.common.IoHandler
Overrides:
messageReceived in class org.apache.mina.common.IoHandlerAdapter

exceptionCaught

public void exceptionCaught(org.apache.mina.common.IoSession s,
                            java.lang.Throwable cause)
Specified by:
exceptionCaught in interface org.apache.mina.common.IoHandler
Overrides:
exceptionCaught in class org.apache.mina.common.IoHandlerAdapter

sessionClosed

public void sessionClosed(org.apache.mina.common.IoSession s)
                   throws java.lang.Exception
Specified by:
sessionClosed in interface org.apache.mina.common.IoHandler
Overrides:
sessionClosed in class org.apache.mina.common.IoHandlerAdapter
Throws:
java.lang.Exception