Class MessageConsumerOpDispenser
java.lang.Object
io.nosqlbench.nb.api.components.core.NBBaseComponentMetrics
io.nosqlbench.nb.api.components.core.NBBaseComponent
io.nosqlbench.adapters.api.activityimpl.BaseOpDispenser<PulsarOp,PulsarSpace>
io.nosqlbench.adapter.pulsar.dispensers.PulsarBaseOpDispenser
io.nosqlbench.adapter.pulsar.dispensers.PulsarClientOpDispenser
io.nosqlbench.adapter.pulsar.dispensers.MessageConsumerOpDispenser
- All Implemented Interfaces:
OpDispenser<PulsarOp>,OpResultTracker,NBComponent,NBComponentAdvisors,NBComponentEvents,NBComponentMetrics,NBComponentProps,NBComponentServices,NBComponentTimeline,NBProviderSearch,NBTokenWords,NBLabeledElement,AutoCloseable,LongFunction<PulsarOp>
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.nosqlbench.nb.api.labels.NBLabeledElement
NBLabeledElement.BasicLabeledElement -
Field Summary
Fields inherited from class io.nosqlbench.adapter.pulsar.dispensers.PulsarClientOpDispenser
msgSeqErrSimuTypeSetFunc, payloadRttFieldFunc, pulsarClient, pulsarSchema, seqTrackingFunc, transactSupplierFunc, useTransactFuncFields inherited from class io.nosqlbench.adapter.pulsar.dispensers.PulsarBaseOpDispenser
asyncApiFunc, parsedOp, pulsarAdapterMetrics, pulsarSpace, tgtNameFunc, totalCycleNum, totalThreadNumFields inherited from class io.nosqlbench.adapters.api.activityimpl.BaseOpDispenser
EXPECTED_RESULT, spaceF, START_TIMERS, STOP_TIMERS, VERIFIER, VERIFIER_IMPORTS, VERIFIER_INIT, verifierTimerFields inherited from class io.nosqlbench.nb.api.components.core.NBBaseComponent
bufferOrphanedMetrics, closed_ns, error, errored_ns, metricsBuffer, parent, started_epoch_ms, started_ns, state, teardown_nsFields inherited from interface io.nosqlbench.nb.api.components.core.NBComponent
EMPTY_COMPONENTFields inherited from interface io.nosqlbench.nb.api.components.core.NBComponentProps
HDRDIGITS, SUMMARYFields inherited from interface io.nosqlbench.nb.api.labels.NBLabeledElement
EMPTY -
Constructor Summary
ConstructorsConstructorDescriptionMessageConsumerOpDispenser(DriverAdapter adapter, ParsedOp op, LongFunction<String> tgtNameFunc, PulsarSpace pulsarSpace) -
Method Summary
Modifier and TypeMethodDescriptiongetOp(long cycle) This method should do all the work of creating an operation that is executable by some other caller.Methods inherited from class io.nosqlbench.adapter.pulsar.dispensers.PulsarClientOpDispenser
getStaticErrSimuTypeSetOpValueFunc, getTransactionSupplierMethods inherited from class io.nosqlbench.adapter.pulsar.dispensers.PulsarBaseOpDispenser
getConsumer, getProducer, getPulsarSpace, getReader, lookupMandtoryStrOpValueFunc, lookupOptionalStrOpValueFunc, lookupOptionalStrOpValueFunc, lookupStaticBoolConfigValueFunc, lookupStaticIntOpValueFunc, lookupStaticStrSetOpValueFuncMethods inherited from class io.nosqlbench.adapters.api.activityimpl.BaseOpDispenser
apply, getLabels, getOpName, getVerifier, onError, onStart, onSuccessMethods inherited from class io.nosqlbench.nb.api.components.core.NBBaseComponent
addAdvisor, addMetricsCloseable, attachChild, beforeDetach, close, create, detachChild, find, findParentService, getAdvisors, getChildren, getComponentOnlyLabels, getComponentProp, getComponentState, getNanosSinceStart, getParent, getTokens, nanosof_close, nanosof_error, nanosof_start, nanosof_teardown, onError, onEvent, reportExecutionMetric, setComponentProp, started_epoch_ms, teardown, toStringMethods inherited from class io.nosqlbench.nb.api.components.core.NBBaseComponentMetrics
addComponentMetric, addListener, findComponentMetrics, findComponentMetrics, getComponentMetric, getComponentMetrics, removeListenerMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface io.nosqlbench.nb.api.components.core.NBComponentAdvisors
getAdvisorResultsMethods inherited from interface io.nosqlbench.nb.api.components.core.NBComponentMetrics
addComponentMetric, findComponentMetrics, findComponentMetrics, findOneComponentMetric, findOneComponentMetric, getComponentMetric, getComponentMetricsMethods inherited from interface io.nosqlbench.nb.api.labels.NBLabeledElement
description
-
Constructor Details
-
MessageConsumerOpDispenser
public MessageConsumerOpDispenser(DriverAdapter adapter, ParsedOp op, LongFunction<String> tgtNameFunc, PulsarSpace pulsarSpace)
-
-
Method Details
-
getOp
Description copied from interface:OpDispenserThis method should do all the work of creating an operation that is executable by some other caller. The value produced by the apply method should not require additional processing if a caller wants to execute the operation multiple times, as for retries.- Parameters:
cycle- The cycle number which serves as the seed for any generated op fields to be bound into an operation.- Returns:
- an executable operation
-