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 voidput(CommandHelper.LogAggregatorMessage message)voidrun()Threadstart()Helper method to start and grant access to the execution thread for this sink.CommandHelper.LogAggregatorMessagetake()Thread.StatethreadState()
-
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.
-