tachyon
Class HeartbeatThread

java.lang.Object
  extended by tachyon.HeartbeatThread
All Implemented Interfaces:
Runnable

public class HeartbeatThread
extends Object
implements Runnable

Thread class to execute a heartbeat periodically.


Constructor Summary
HeartbeatThread(String threadName, HeartbeatExecutor hbExecutor, int fixedExecutionIntervalMs)
           
 
Method Summary
 void run()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HeartbeatThread

public HeartbeatThread(String threadName,
                       HeartbeatExecutor hbExecutor,
                       int fixedExecutionIntervalMs)
Parameters:
threadName -
hbExecutor -
fixedExecutionIntervalMs - Sleep time between different heartbeat.
Method Detail

run

public void run()
Specified by:
run in interface Runnable


Copyright © 2013. All Rights Reserved.