Package io.micronaut.http.client
Class HttpClientConfiguration.Http2ClientConfiguration
java.lang.Object
io.micronaut.http.client.HttpClientConfiguration.Http2ClientConfiguration
- Direct Known Subclasses:
DefaultHttpClientConfiguration.DefaultHttp2ClientConfiguration
,ServiceHttpClientConfiguration.ServiceHttp2ClientConfiguration
- Enclosing class:
- HttpClientConfiguration
HTTP/2-specific client configuration.
- Since:
- 4.6.0
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionFor HTTP/2 connections, the interval from the last message (inbound or outbound) to when an automated ping should be sent.For HTTP/2 connections, the interval from the last inbound message to when an automated ping should be sent.For HTTP/2 connections, the interval from the last outbound message to when an automated ping should be sent.void
setPingIntervalIdle
(@Nullable Duration pingIntervalIdle) For HTTP/2 connections, the interval from the last message (inbound or outbound) to when an automated ping should be sent.void
setPingIntervalRead
(@Nullable Duration pingIntervalRead) For HTTP/2 connections, the interval from the last inbound message to when an automated ping should be sent.void
setPingIntervalWrite
(@Nullable Duration pingIntervalWrite) For HTTP/2 connections, the interval from the last outbound message to when an automated ping should be sent.
-
Field Details
-
PREFIX
The prefix to use for configuration.- See Also:
-
-
Constructor Details
-
Http2ClientConfiguration
public Http2ClientConfiguration()
-
-
Method Details
-
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
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
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
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
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
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
-