Package org.apache.hc.core5.benchmark
Class BenchmarkWorker
java.lang.Object
org.apache.hc.core5.benchmark.BenchmarkWorker
- All Implemented Interfaces:
ResourceHolder
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final CountDownLatch
private final BenchmarkConfig
private final HttpCoreContext
private final AtomicReference
<AsyncClientEndpoint> private final HttpHost
private final AtomicLong
private final HttpAsyncRequester
private final Stats
-
Constructor Summary
ConstructorsConstructorDescriptionBenchmarkWorker
(HttpAsyncRequester requester, HttpHost host, HttpCoreContext context, AtomicLong requestCount, CountDownLatch completionLatch, Stats stats, BenchmarkConfig config) -
Method Summary
Modifier and TypeMethodDescriptionprivate AsyncRequestProducer
private AsyncResponseConsumer
<Void> void
execute()
void
-
Field Details
-
requester
-
host
-
context
-
requestCount
-
completionLatch
-
stats
-
config
-
endpointRef
-
-
Constructor Details
-
BenchmarkWorker
public BenchmarkWorker(HttpAsyncRequester requester, HttpHost host, HttpCoreContext context, AtomicLong requestCount, CountDownLatch completionLatch, Stats stats, BenchmarkConfig config)
-
-
Method Details
-
createRequestProducer
-
createResponseConsumer
-
execute
public void execute() -
releaseResources
public void releaseResources()- Specified by:
releaseResources
in interfaceResourceHolder
-