org.atmosphere.socketio
Class SocketIOSessionActivityMonitor

java.lang.Object
  extended by org.atmosphere.socketio.SocketIOSessionActivityMonitor
Direct Known Subclasses:
HeartBeatSessionMonitor, TimeoutSessionMonitor

public abstract class SocketIOSessionActivityMonitor
extends Object

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

Field Summary
protected  long delay
           
protected  ScheduledExecutorService executor
           
protected  ScheduledFuture<Boolean> future
           
protected  TimeUnit timeUnit
           
 
Constructor Summary
SocketIOSessionActivityMonitor(ScheduledExecutorService executor)
           
 
Method Summary
 void cancel()
           
abstract  Callable<Boolean> getCommand()
           
 long getDelay()
           
 TimeUnit getTimeUnit()
           
 void setDelay(long delay)
           
 void setTimeUnit(TimeUnit timeUnit)
           
 void start()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

executor

protected ScheduledExecutorService executor

future

protected ScheduledFuture<Boolean> future

delay

protected long delay

timeUnit

protected TimeUnit timeUnit
Constructor Detail

SocketIOSessionActivityMonitor

public SocketIOSessionActivityMonitor(ScheduledExecutorService executor)
Method Detail

getDelay

public long getDelay()

setDelay

public void setDelay(long delay)

getTimeUnit

public TimeUnit getTimeUnit()

setTimeUnit

public void setTimeUnit(TimeUnit timeUnit)

getCommand

public abstract Callable<Boolean> getCommand()

start

public void start()

cancel

public void cancel()


Copyright © 2015. All Rights Reserved.