Class DefaultStreamingConfig

  • All Implemented Interfaces:
    StreamingConfig

    @Immutable
    public final class DefaultStreamingConfig
    extends Object
    implements StreamingConfig
    This class is the default implementation of the streaming config.
    • Method Detail

      • of

        public static StreamingConfig of​(com.typesafe.config.Config config)
        Returns an instance of DefaultStreamingConfig based 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 - if config is invalid.
      • getParallelism

        public int getParallelism()
        Description copied from interface: StreamingConfig
        Returns maximum number of stream elements to process in parallel.
        Specified by:
        getParallelism in interface StreamingConfig
        Returns:
        the parallelism.
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object