Class ThroughputLimiter.NoOpThroughputLimiter

    • Constructor Detail

      • NoOpThroughputLimiter

        public NoOpThroughputLimiter()
    • Method Detail

      • getPauseTime

        public java.time.Duration getPauseTime​(ThroughputLimiter.Context context)
        Description copied from interface: ThroughputLimiter
        Retrieve the amount of time the source should pause processing for. If the reader should proceed without pausing return Duration.ZERO. Note that this method is called for each input element and must be therefore cheap.
        Specified by:
        getPauseTime in interface ThroughputLimiter
        Parameters:
        context - context for the limiter
        Returns:
        the amount of time to pause the source for.
      • close

        public void close()
        Specified by:
        close in interface java.lang.AutoCloseable
        Specified by:
        close in interface java.io.Closeable
        Specified by:
        close in interface ThroughputLimiter