Package ca.uqac.lif.cep.diagnostics
Class Timer
- java.lang.Object
-
- ca.uqac.lif.cep.diagnostics.Timer
-
- All Implemented Interfaces:
java.lang.Runnable
public class Timer extends java.lang.Object implements java.lang.Runnable
Timer that pushes the contents ofm_packedEvents
everym_outputInterval
milliseconds.
-
-
Field Summary
Fields Modifier and Type Field Description protected DiagnosticsCallback
m_callback
protected long
m_interval
protected boolean
m_run
-
Constructor Summary
Constructors Constructor Description Timer(DiagnosticsCallback callback, long interval)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
run()
void
stop()
-
-
-
Field Detail
-
m_run
protected volatile boolean m_run
-
m_interval
protected final long m_interval
-
m_callback
protected DiagnosticsCallback m_callback
-
-
Constructor Detail
-
Timer
public Timer(DiagnosticsCallback callback, long interval)
-
-