org.perf.log.app.logger
Class CommonJAsyncWorkerThread

java.lang.Object
  extended by 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


Field Summary
static java.lang.String ASYNC_THREAD_LOGGER_PRINT_STAT_TIME_INTERVAL_IN_MILLIS
           
static java.lang.String ASYNC_THREAD_LOGGER_THREAD_SLEEP_TIME_IN_MILLIS
           
 
Constructor Summary
CommonJAsyncWorkerThread(java.lang.String asyncLogTaskName, java.util.concurrent.LinkedBlockingQueue<AppLogData> logQueue, LogQueueMetricTracker logQueueMetricTracker)
           
 
Method Summary
static long getPrintStatTimeIntervalInMillis()
           
static long getThreadSleepTimeInMillis()
           
 boolean isDaemon()
           
 void release()
           
 void run()
           
static void setPrintStatTimeIntervalInMillis(long inPrintStatTimeIntervalInMillis)
           
static void setThreadSleepTimeInMillis(long inThreadSleepTimeInMillis)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

CommonJAsyncWorkerThread

public CommonJAsyncWorkerThread(java.lang.String asyncLogTaskName,
                                java.util.concurrent.LinkedBlockingQueue<AppLogData> logQueue,
                                LogQueueMetricTracker logQueueMetricTracker)
Method Detail

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