src/main/java/unimelb/mf/client/session/MFSession.java
public void startPingServerPeriodically(int period) {
        stopPingServerPeriodically();
        _timer = new Timer();
        _timer.scheduleAtFixedRate(new TimerTask() {

            @Override
            public void run() {
                try {
                    execute("server.ping");
                } catch (Throwable e) {
                    e.printStackTrace(System.err);
                }
            }
        }, 0, period);
    }
/**
     * 
     * @param period
     *            time in milliseconds.
     */
@param period
time in milliseconds.
@param period time in milliseconds .
public void startPingServerPeriodically(int period) {
        stopPingServerPeriodically();
        _timer = new Timer();
        _timer.scheduleAtFixedRate(new TimerTask() {
            @Override
            public void run() {
                try {
                    execute("server.ping");
                } catch (Throwable e) {
                    e.printStackTrace(System.err);
                }
            }
        }, 0, period);
    }
public void startPingServerPeriodically ( int period ) { stopPingServerPeriodically ( ) ; _timer = new Timer ( ) ; _timer . scheduleAtFixedRate ( new TimerTask ( ) { @ Override public void run ( ) { try { execute ( "server.ping" ) ; } catch ( Throwable e ) { e . printStackTrace ( System . err ) ; } } } , 0 , period ) ; }
@param period
            time in milliseconds.
@param period time in milliseconds .