Class IntradayLoggerRoundRobinWriterThread

java.lang.Object
java.lang.Thread
com.illumon.intradaylogger.IntradayLoggerRoundRobinWriterThread
All Implemented Interfaces:
Runnable

public class IntradayLoggerRoundRobinWriterThread extends Thread
A thread that writes out multiple IntradayLogger entries to their destinations. If an IOException occurs and the logger isn't closed, then the program will exit. If the logger is closed, the assumption is that the program closed it and the program will not exit, and will continue on as long as some loggers are open. Any other unchecked exceptions will cause the program to exit.
  • Constructor Details

    • IntradayLoggerRoundRobinWriterThread

      public IntradayLoggerRoundRobinWriterThread(String name, IntradayLogger... loggers)
  • Method Details

    • start

      public void start()
      Overrides:
      start in class Thread
    • run

      public void run()
      Specified by:
      run in interface Runnable
      Overrides:
      run in class Thread