de.root1.simon
Class PingWatchdog

java.lang.Object
  extended by de.root1.simon.PingWatchdog

public class PingWatchdog
extends java.lang.Object

A class that observes all ping-requests and closes session if ping echo isn't returned within a specified timeframe

Version:
200901141316
Author:
Alexander Christian

Constructor Summary
protected PingWatchdog(Dispatcher dispatcher)
           
 
Method Summary
protected  void notifyPongReceived(org.apache.mina.core.session.IoSession session)
           
protected  void waitForPong(org.apache.mina.core.session.IoSession session)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PingWatchdog

protected PingWatchdog(Dispatcher dispatcher)
Method Detail

waitForPong

protected void waitForPong(org.apache.mina.core.session.IoSession session)

notifyPongReceived

protected void notifyPongReceived(org.apache.mina.core.session.IoSession session)


Copyright © 2011. All Rights Reserved.