Class EarthwormHeartbeater

java.lang.Object
java.util.TimerTask
edu.sc.seis.seisFile.earthworm.EarthwormHeartbeater
All Implemented Interfaces:
java.lang.Runnable

public class EarthwormHeartbeater
extends java.util.TimerTask
sends heartbeats on the EarthwormEscapeOutputStream. Synchronized on the outStream and so any other thread that writes to the same EarthwormEscapeOutputStream must also synchronize on the outStream. Setting the outStream to null will disable heartbeats, and setting it back to a non-null will enable them.