public class HeartbeatEventProv extends java.lang.Object implements TvEventProv, java.lang.Runnable, eventweb.servutil.RegInit, Debuggable
Generates a Timestamp event at a fixed interval.
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String[] |
DEP_LIST
Class dependencies
|
protected java.util.List<TvEventListener> |
listeners
Objects to provide events to
|
static java.lang.String |
VERSION
Class version
|
IF_VERSIONIF_VERSION| Constructor and Description |
|---|
HeartbeatEventProv()
Create a new HeartbeatEventProv instance
|
| Modifier and Type | Method and Description |
|---|---|
void |
addTvListener(TvEventListener listener)
Register a listener.
|
protected void |
finalize()
Perform instance cleanup at termination.
|
TvList |
getTimestampRec() |
void |
init(eventweb.servutil.SrvcRegistry registry,
TvList params)
Initialize the provider
|
boolean |
isDebugging()
Get debug state.
|
void |
quiesce()
Stop accepting new requests and release resources
|
void |
removeTvListener(TvEventListener listener)
De-Register a listener
|
void |
run()
Main execution thread
|
void |
setDebugging(boolean debug)
Set or clear debugging
|
public static final java.lang.String VERSION
public static final java.lang.String[] DEP_LIST
protected java.util.List<TvEventListener> listeners
public HeartbeatEventProv()
public void setDebugging(boolean debug)
setDebugging in interface Debuggabledebug - If true, debugging is turned on,
otherwise, debugging is turned off.public boolean isDebugging()
isDebugging in interface Debuggablepublic void init(eventweb.servutil.SrvcRegistry registry,
TvList params)
init in interface eventweb.servutil.RegInitregistry - The service registryparams - Initialization parameterspublic void addTvListener(TvEventListener listener)
addTvListener in interface TvEventSrcpublic void removeTvListener(TvEventListener listener)
removeTvListener in interface TvEventSrcpublic TvList getTimestampRec()
public void run()
run in interface java.lang.Runnablepublic void quiesce()
protected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwable