Class ByteScanLimiterFactory

    • Method Detail

      • enforce

        public static ByteScanLimiter enforce​(long limit)
        Creates a limiter that enforces a maximum number of bytes that can be processed in a single scan.
        Parameters:
        limit - the maximum number of bytes that can be processed in a single scan
        Returns:
        an enforcing limiter
      • tracking

        public static ByteScanLimiter tracking()
        Creates a limiter that tracks the number of bytes that has been scanned, but does not impose a limit.
        Returns:
        a tracking limiter
      • untracked

        public static ByteScanLimiter untracked()
        Creates a limiter that neither enforces nor tracks the number of bytes scanned.
        Returns:
        an untracked limiter