Class BinaryLogQueueSink
java.lang.Object
com.illumon.iris.db.v2.logaggregator.BinaryLogQueueSink
- All Implemented Interfaces:
Runnable
public class BinaryLogQueueSink extends Object implements Runnable
Drain a binary log queue (to files).
-
Method Summary
Modifier and Type Method Description void
put(CommandHelper.LogAggregatorMessage message)
void
run()
Thread
start()
Helper method to start and grant access to the execution thread for this sink.CommandHelper.LogAggregatorMessage
take()
Thread.State
threadState()
-
Method Details
-
put
- Throws:
InterruptedException
-
take
- Throws:
InterruptedException
-
run
public void run() -
start
Helper method to start and grant access to the execution thread for this sink. Starting the thread needs to be separated from the construction of the object. It is invalid to start a thread twice. -
threadState
- Returns:
- the state of the execution thread.
-