Class FixedRateSource.TransportFixedRateSource.TransportFixedRateParams
java.lang.Object
de.iip_ecosphere.platform.services.environment.services.FixedRateSource.FixedRateParams
de.iip_ecosphere.platform.services.environment.services.FixedRateSource.TransportFixedRateSource.TransportFixedRateParams
- Enclosing class:
FixedRateSource.TransportFixedRateSource<D>
public static class FixedRateSource.TransportFixedRateSource.TransportFixedRateParams
extends FixedRateSource.FixedRateParams
A parameter/configuration object for the
FixedRateSource.- Author:
- Holger Eichelberger, SSE
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionTransportFixedRateParams(long fixedDelay, long maxMessagesPerPoll, int duration) Creates a fixed rate parameters object.TransportFixedRateParams(long fixedDelay, long maxMessagesPerPoll, int duration, Supplier<String> headlineSupplier) Creates a fixed rate parameters object. -
Method Summary
Modifier and TypeMethodDescriptionReturns the default transport channel.de.iip_ecosphere.platform.transport.connectors.TransportConnectorReturns the transport connector.Specifies the transport settings.Methods inherited from class de.iip_ecosphere.platform.services.environment.services.FixedRateSource.FixedRateParams
getDuration, getFixedDelay, getHeadlineSupplier, getMaxMessagesPerPoll
-
Field Details
-
connector
private de.iip_ecosphere.platform.transport.connectors.TransportConnector connector -
channel
-
-
Constructor Details
-
TransportFixedRateParams
public TransportFixedRateParams(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
-
TransportFixedRateParams
public TransportFixedRateParams(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
-
with
public FixedRateSource.TransportFixedRateSource.TransportFixedRateParams with(de.iip_ecosphere.platform.transport.connectors.TransportConnector connector, String channel) Specifies the transport settings.- Parameters:
connector- the connector instance to usechannel- the default channel onconnectorto use- Returns:
- this for chaining
-
getConnector
public de.iip_ecosphere.platform.transport.connectors.TransportConnector getConnector()Returns the transport connector.- Returns:
- the connector
-
getChannel
Returns the default transport channel.- Returns:
- the channel
-