Class LogCompressor
java.lang.Object
org.jpos.util.LogCompressor
Serializes log file compression across all log listener instances
through a single on-demand background worker.
The worker thread is created on demand, runs as a low-priority daemon,
and exits after IDLE_TIMEOUT milliseconds of inactivity.
-
Method Summary
Modifier and TypeMethodDescriptionstatic LogCompressorReturns the lazy-initialised singleton.voidSubmits a compression task forlogFileon the shared executor.
-
Method Details
-
getInstance
Returns the lazy-initialised singleton.- Returns:
- the shared
LogCompressor
-
submit
-