Class FixedRateSource.FixedRateParams
java.lang.Object
de.iip_ecosphere.platform.services.environment.services.FixedRateSource.FixedRateParams
- Direct Known Subclasses:
FixedRateSource.TransportFixedRateSource.TransportFixedRateParams
- Enclosing class:
FixedRateSource<D>
A parameter/configuration object for the
FixedRateSource.- Author:
- Holger Eichelberger, SSE
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate intprivate longprivate long -
Constructor Summary
ConstructorsConstructorDescriptionFixedRateParams(long fixedDelay, long maxMessagesPerPoll, int duration) Creates a fixed rate parameters object.FixedRateParams(long fixedDelay, long maxMessagesPerPoll, int duration, Supplier<String> headlineSupplier) Creates a fixed rate parameters object. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the overall duration of the run/experiment, i.e., when an auto-stop shall set in.longReturns the fixed delay between two polls/ingestions.Returns a supplier for a headline when starting the run/experiment.longReturns the (maximum) number of messages per poll/ingestions.
-
Field Details
-
maxMessagesPerPoll
private long maxMessagesPerPoll -
fixedDelay
private long fixedDelay -
duration
private int duration -
headlineSupplier
-
-
Constructor Details
-
FixedRateParams
public FixedRateParams(long fixedDelay, long maxMessagesPerPoll, int duration) Creates a fixed rate parameters object.- Parameters:
fixedDelay- the fixed delay between two polls/ingestions in msmaxMessagesPerPoll- the (maximum) number of messages per pollduration- the overall duration of the run/experiment in ms
-
FixedRateParams
public FixedRateParams(long fixedDelay, long maxMessagesPerPoll, int duration, Supplier<String> headlineSupplier) Creates a fixed rate parameters object.- Parameters:
fixedDelay- the fixed delay between two polls/ingestions in msmaxMessagesPerPoll- the (maximum) number of messages per pollduration- the overall duration of the run/experiment in msheadlineSupplier- the headline text supplier, may be null
-
-
Method Details
-
getMaxMessagesPerPoll
public long getMaxMessagesPerPoll()Returns the (maximum) number of messages per poll/ingestions.- Returns:
- the (maximum) number of messages per poll
-
getFixedDelay
public long getFixedDelay()Returns the fixed delay between two polls/ingestions.- Returns:
- the fixed delay in ms
-
getDuration
public int getDuration()Returns the overall duration of the run/experiment, i.e., when an auto-stop shall set in.- Returns:
- the duration in ms
-
getHeadlineSupplier
Returns a supplier for a headline when starting the run/experiment.- Returns:
- the headline supplier, may be null
-