Class HttpClientConfiguration.Http2ClientConfiguration

java.lang.Object
io.micronaut.http.client.HttpClientConfiguration.Http2ClientConfiguration
Direct Known Subclasses:
DefaultHttpClientConfiguration.DefaultHttp2ClientConfiguration, ServiceHttpClientConfiguration.ServiceHttp2ClientConfiguration
Enclosing class:
HttpClientConfiguration

public static class HttpClientConfiguration.Http2ClientConfiguration extends Object
HTTP/2-specific client configuration.
Since:
4.6.0
  • Field Details

  • Constructor Details

    • Http2ClientConfiguration

      public Http2ClientConfiguration()
  • Method Details

    • getPingIntervalRead

      @Nullable public @Nullable Duration getPingIntervalRead()
      For HTTP/2 connections, the interval from the last inbound message to when an automated ping should be sent. This can be used to keep low-traffic connections alive.
      Returns:
      The timeout when to send a ping frame
    • setPingIntervalRead

      public void setPingIntervalRead(@Nullable @Nullable Duration pingIntervalRead)
      For HTTP/2 connections, the interval from the last inbound message to when an automated ping should be sent. This can be used to keep low-traffic connections alive.
      Parameters:
      pingIntervalRead - The timeout when to send a ping frame
    • getPingIntervalWrite

      @Nullable public @Nullable Duration getPingIntervalWrite()
      For HTTP/2 connections, the interval from the last outbound message to when an automated ping should be sent. This can be used to keep low-traffic connections alive.
      Returns:
      The timeout when to send a ping frame
    • setPingIntervalWrite

      public void setPingIntervalWrite(@Nullable @Nullable Duration pingIntervalWrite)
      For HTTP/2 connections, the interval from the last outbound message to when an automated ping should be sent. This can be used to keep low-traffic connections alive.
      Parameters:
      pingIntervalWrite - The timeout when to send a ping frame
    • getPingIntervalIdle

      @Nullable public @Nullable Duration getPingIntervalIdle()
      For HTTP/2 connections, the interval from the last message (inbound or outbound) to when an automated ping should be sent. This can be used to keep low-traffic connections alive.
      Returns:
      The timeout when to send a ping frame
    • setPingIntervalIdle

      public void setPingIntervalIdle(@Nullable @Nullable Duration pingIntervalIdle)
      For HTTP/2 connections, the interval from the last message (inbound or outbound) to when an automated ping should be sent. This can be used to keep low-traffic connections alive.
      Parameters:
      pingIntervalIdle - The timeout when to send a ping frame