Package io.debezium.performance.core
Class ChangeEventQueuePerf.QueuePerf
- java.lang.Object
-
- io.debezium.performance.core.ChangeEventQueuePerf.QueuePerf
-
- Direct Known Subclasses:
ChangeEventQueuePerf_QueuePerf_jmhType_B1
- Enclosing class:
- ChangeEventQueuePerf
public static class ChangeEventQueuePerf.QueuePerf extends Object
-
-
Field Summary
Fields Modifier and Type Field Description private ChangeEventQueue<String>changeEventQueueprivate Threadconsumerprivate static StringEVENT(package private) longpollIntervalMillisprivate Threadproducerprivate static intTOTAL_RECORDS
-
Constructor Summary
Constructors Constructor Description QueuePerf()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidbenchmarkChangeEventQueue()voidsetup()voidsetupInvocation()voidteardown()
-
-
-
Field Detail
-
TOTAL_RECORDS
private static final int TOTAL_RECORDS
- See Also:
- Constant Field Values
-
EVENT
private static final String EVENT
- See Also:
- Constant Field Values
-
pollIntervalMillis
long pollIntervalMillis
-
changeEventQueue
private ChangeEventQueue<String> changeEventQueue
-
producer
private Thread producer
-
consumer
private Thread consumer
-
-
Method Detail
-
setupInvocation
public void setupInvocation()
-
setup
public void setup()
-
benchmarkChangeEventQueue
public void benchmarkChangeEventQueue() throws InterruptedException- Throws:
InterruptedException
-
teardown
public void teardown()
-
-