Interface TcpTimeout.Builder

All Superinterfaces:
Buildable, CopyableBuilder<TcpTimeout.Builder,TcpTimeout>, SdkBuilder<TcpTimeout.Builder,TcpTimeout>, SdkPojo
Enclosing class:
TcpTimeout

public static interface TcpTimeout.Builder extends SdkPojo, CopyableBuilder<TcpTimeout.Builder,TcpTimeout>
  • Method Details

    • idle

      An object that represents an idle timeout. An idle timeout bounds the amount of time that a connection may be idle. The default value is none.

      Parameters:
      idle - An object that represents an idle timeout. An idle timeout bounds the amount of time that a connection may be idle. The default value is none.
      Returns:
      Returns a reference to this object so that method calls can be chained together.
    • idle

      An object that represents an idle timeout. An idle timeout bounds the amount of time that a connection may be idle. The default value is none.

      This is a convenience method that creates an instance of the Duration.Builder avoiding the need to create one manually via Duration.builder().

      When the Consumer completes, SdkBuilder.build() is called immediately and its result is passed to idle(Duration).

      Parameters:
      idle - a consumer that will call methods on Duration.Builder
      Returns:
      Returns a reference to this object so that method calls can be chained together.
      See Also: