Class ServiceOptionsBuilder

java.lang.Object
com.linecorp.armeria.server.ServiceOptionsBuilder

@UnstableApi public final class ServiceOptionsBuilder extends Object
Creates a new ServiceOptions with the specified parameters.
  • Method Details

    • requestTimeoutMillis

      public ServiceOptionsBuilder requestTimeoutMillis(long requestTimeoutMillis)
      Returns the server-side timeout of a request in milliseconds.
    • maxRequestLength

      public ServiceOptionsBuilder maxRequestLength(long maxRequestLength)
      Returns the server-side maximum length of a request.
    • requestAutoAbortDelayMillis

      public ServiceOptionsBuilder requestAutoAbortDelayMillis(long requestAutoAbortDelayMillis)
      Sets the amount of time to wait before aborting an HttpRequest when its corresponding HttpResponse is complete.
    • build

      public ServiceOptions build()
      Returns a newly created ServiceOptions based on the properties of this builder.