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 CountDownLatchprivate final BenchmarkConfigprivate final HttpCoreContextprivate final AtomicReference<AsyncClientEndpoint> private final HttpHostprivate final AtomicLongprivate final HttpAsyncRequesterprivate final Stats -
Constructor Summary
ConstructorsConstructorDescriptionBenchmarkWorker(HttpAsyncRequester requester, HttpHost host, HttpCoreContext context, AtomicLong requestCount, CountDownLatch completionLatch, Stats stats, BenchmarkConfig config) -
Method Summary
Modifier and TypeMethodDescriptionprivate AsyncRequestProducerprivate AsyncResponseConsumer<Void> voidexecute()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:
releaseResourcesin interfaceResourceHolder
-