Class DefaultStreamingConfig
- java.lang.Object
-
- org.eclipse.ditto.services.gateway.streaming.DefaultStreamingConfig
-
- All Implemented Interfaces:
StreamingConfig
@Immutable public final class DefaultStreamingConfig extends Object implements StreamingConfig
This class is the default implementation of the streaming config.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.eclipse.ditto.services.gateway.streaming.StreamingConfig
StreamingConfig.StreamingConfigValue
-
-
Field Summary
-
Fields inherited from interface org.eclipse.ditto.services.gateway.streaming.StreamingConfig
CONFIG_PATH
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)intgetParallelism()Returns maximum number of stream elements to process in parallel.DurationgetSessionCounterScrapeInterval()Returns the session counter update interval.SignalEnrichmentConfiggetSignalEnrichmentConfig()Returns the signal-enrichment config.WebsocketConfiggetWebsocketConfig()Returns the websocket config for streaming.inthashCode()static StreamingConfigof(com.typesafe.config.Config config)Returns an instance ofDefaultStreamingConfigbased on the settings of the specified Config.StringtoString()-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.eclipse.ditto.services.gateway.streaming.StreamingConfig
render
-
-
-
-
Method Detail
-
of
public static StreamingConfig of(com.typesafe.config.Config config)
Returns an instance ofDefaultStreamingConfigbased on the settings of the specified Config.- Parameters:
config- is supposed to provide the settings of the web socket config at "streaming".- Returns:
- the instance.
- Throws:
org.eclipse.ditto.services.utils.config.DittoConfigError- ifconfigis invalid.
-
getSessionCounterScrapeInterval
public Duration getSessionCounterScrapeInterval()
Description copied from interface:StreamingConfigReturns the session counter update interval.- Specified by:
getSessionCounterScrapeIntervalin interfaceStreamingConfig- Returns:
- the interval.
-
getWebsocketConfig
public WebsocketConfig getWebsocketConfig()
Description copied from interface:StreamingConfigReturns the websocket config for streaming.- Specified by:
getWebsocketConfigin interfaceStreamingConfig- Returns:
- the websocket config.
-
getSignalEnrichmentConfig
public SignalEnrichmentConfig getSignalEnrichmentConfig()
Description copied from interface:StreamingConfigReturns the signal-enrichment config.- Specified by:
getSignalEnrichmentConfigin interfaceStreamingConfig- Returns:
- the signal-enrichment config.
-
getParallelism
public int getParallelism()
Description copied from interface:StreamingConfigReturns maximum number of stream elements to process in parallel.- Specified by:
getParallelismin interfaceStreamingConfig- Returns:
- the parallelism.
-
-