Class DefaultOrphanResponseReporter.Builder

    • Constructor Detail

      • Builder

        public Builder()
    • Method Detail

      • logInterval

        public DefaultOrphanResponseReporter.Builder logInterval​(long interval,
                                                                 TimeUnit unit)
        Allows to customize the log interval. if set to 0, disables it.
        Parameters:
        interval - the interval to use.
        unit - the time unit for the interval.
        Returns:
        this builder for chaining.
      • sampleSize

        public DefaultOrphanResponseReporter.Builder sampleSize​(int sampleSize)
        Allows to customize the sample size per service.
        Parameters:
        sampleSize - the sample size to set.
        Returns:
        this builder for chaining.
      • pretty

        public DefaultOrphanResponseReporter.Builder pretty​(boolean pretty)
        Allows to set the JSON output to pretty, making it more readable but also more verbose. Helpful during debugging.
        Parameters:
        pretty - set to true, false by default
        Returns:
        this builder for chaining.