Interface OutboundServicesConfiguration

All Superinterfaces:
MonitoringConfiguration
All Known Implementing Classes:
DefaultOutboundServicesConfiguration

public interface OutboundServicesConfiguration extends MonitoringConfiguration
Configuration for Outbound Services extension
  • Field Details

    • DEFAULT_MAX_RESPONSE_PAYLOAD_SIZE

      static final int DEFAULT_MAX_RESPONSE_PAYLOAD_SIZE
      See Also:
    • DEFAULT_REQUEST_EXECUTION_TIMEOUT_MS

      static final long DEFAULT_REQUEST_EXECUTION_TIMEOUT_MS
      See Also:
    • DEFAULT_MAX_POOL_CONNECTIONS

      static final int DEFAULT_MAX_POOL_CONNECTIONS
      See Also:
    • DEFAULT_CONNECTION_KEEP_ALIVE

      static final Duration DEFAULT_CONNECTION_KEEP_ALIVE
    • DEFAULT_CONNECTION_TIMEOUT

      static final Duration DEFAULT_CONNECTION_TIMEOUT
    • DEFAULT_CONNECTION_VALID_PERIOD

      static final Duration DEFAULT_CONNECTION_VALID_PERIOD
  • Method Details

    • getMaximumResponsePayloadSize

      default int getMaximumResponsePayloadSize()
      Retrieves the maximum response payload size
      Returns:
      the maximum payload size
    • getRequestExecutionTimeout

      default long getRequestExecutionTimeout()
      Gets the outbound request timeout in milliseconds
      Returns:
      timeout value
    • getMaxConnectionPoolSize

      default int getMaxConnectionPoolSize()
      Retrieves maximum number of connections in a connection pool for outbound communications.
      Returns:
      configured value for the max connection pool size or 5, if the max connection pool size is not configured or the value cannot be parsed.
    • getConnectionKeepAlive

      default Duration getConnectionKeepAlive()
      Retrieves duration for keeping outbound connection alive. Read Connection Keep-Alive for more information.
      Returns:
      configured value for keeping the connections alive or duration of half second, if the duration is not configured or cannot be parsed.
    • getConnectionTimeout

      default Duration getConnectionTimeout()
      Retrieves timeout for establishing an outbound connection.
      Returns:
      configured value for the connection timeout or duration of 3 second, if the timeout value is not configured or cannot be parsed.
    • getIdleConnectionValidityPeriod

      default Duration getIdleConnectionValidityPeriod()
      Retrieves period of time, during which an idle connection in a connection pool is considered to be valid. Once that period is over, the connection may be validated before leasing it from the pool.
      Returns:
      configured value for the connection validity period or duration of half second, if the value is not configured or cannot be parsed.