Interface CrtConnectionHealthConfiguration.Builder

    • Method Detail

      • minimumThroughputInBps

        CrtConnectionHealthConfiguration.Builder minimumThroughputInBps​(Long minimumThroughputInBps)
        Sets a throughput threshold for connections. Throughput below this value will be considered unhealthy.
        Parameters:
        minimumThroughputInBps - minimum amount of throughput, in bytes per second, for a connection to be considered healthy.
        Returns:
        Builder
      • minimumThroughputTimeout

        CrtConnectionHealthConfiguration.Builder minimumThroughputTimeout​(Duration minimumThroughputTimeout)
        Sets how long a connection is allowed to be unhealthy before getting shut down.

        It only supports seconds precision

        Parameters:
        minimumThroughputTimeout - How long a connection is allowed to be unhealthy before getting shut down.
        Returns:
        Builder