org.perf.log.app.logger
Class CommonJAsyncWorkerThread
java.lang.Object
org.perf.log.app.logger.CommonJAsyncWorkerThread
- All Implemented Interfaces:
- commonj.work.Work, java.lang.Runnable
public class CommonJAsyncWorkerThread
- extends java.lang.Object
- implements commonj.work.Work
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ASYNC_THREAD_LOGGER_THREAD_SLEEP_TIME_IN_MILLIS
public static final java.lang.String ASYNC_THREAD_LOGGER_THREAD_SLEEP_TIME_IN_MILLIS
- See Also:
- Constant Field Values
ASYNC_THREAD_LOGGER_PRINT_STAT_TIME_INTERVAL_IN_MILLIS
public static final java.lang.String ASYNC_THREAD_LOGGER_PRINT_STAT_TIME_INTERVAL_IN_MILLIS
- See Also:
- Constant Field Values
CommonJAsyncWorkerThread
public CommonJAsyncWorkerThread(java.lang.String asyncLogTaskName,
java.util.concurrent.LinkedBlockingQueue<AppLogData> logQueue,
LogQueueMetricTracker logQueueMetricTracker)
release
public void release()
- Specified by:
release
in interface commonj.work.Work
run
public void run()
- Specified by:
run
in interface java.lang.Runnable
getThreadSleepTimeInMillis
public static long getThreadSleepTimeInMillis()
- Returns:
- the threadSleepTimeInMillis
getPrintStatTimeIntervalInMillis
public static long getPrintStatTimeIntervalInMillis()
- Returns:
- the printStatTimeIntervalInMillis
setThreadSleepTimeInMillis
public static void setThreadSleepTimeInMillis(long inThreadSleepTimeInMillis)
- Parameters:
threadSleepTimeInMillis
- the threadSleepTimeInMillis to set
setPrintStatTimeIntervalInMillis
public static void setPrintStatTimeIntervalInMillis(long inPrintStatTimeIntervalInMillis)
- Parameters:
printStatTimeIntervalInMillis
- the printStatTimeIntervalInMillis to set
isDaemon
public boolean isDaemon()
- Specified by:
isDaemon
in interface commonj.work.Work