Package io.perl.api.impl
Class CQueuePerl
java.lang.Object
io.perl.api.impl.CQueuePerl
- All Implemented Interfaces:
GetPerlChannel
,Perl
,RunBenchmark
Class for Concurrent Queue based PerL.
-
Constructor Summary
ConstructorDescriptionCQueuePerl
(@NotNull PerlConfig perlConfig, PeriodicRecorder periodicRecorder, int reportingIntervalMS, Time time, ExecutorService executor) Constructor CQueuePerl initialize all values. -
Method Summary
-
Constructor Details
-
CQueuePerl
public CQueuePerl(@NotNull @NotNull PerlConfig perlConfig, PeriodicRecorder periodicRecorder, int reportingIntervalMS, Time time, ExecutorService executor) Constructor CQueuePerl initialize all values.- Parameters:
perlConfig
- NotNull PerlConfigperiodicRecorder
- PeriodicRecorderreportingIntervalMS
- inttime
- Timeexecutor
- ExecutorService
-
-
Method Details
-
getPerlChannel
Get Perl channel.- Specified by:
getPerlChannel
in interfaceGetPerlChannel
- Returns:
- PerlChannel Interface
-
run
Run the CQ Perl.- Specified by:
run
in interfaceRunBenchmark
- Parameters:
secondsToRun
- Number of seconds to RunrecordsCount
- If secondsToRun is 0, then this indicates the total number of records to benchmark or read/write. If secondsToRun is higher than 0, then this parameter is ignored.- Returns:
- CompletableFuture retFuture.
-
stop
public void stop()Stop the CQ Perl.
-