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 SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier 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.voidsetPingIntervalIdle(@Nullable Duration pingIntervalIdle) For HTTP/2 connections, the interval from the last message (inbound or outbound) to when an automated ping should be sent.voidsetPingIntervalRead(@Nullable Duration pingIntervalRead) For HTTP/2 connections, the interval from the last inbound message to when an automated ping should be sent.voidsetPingIntervalWrite(@Nullable Duration pingIntervalWrite) For HTTP/2 connections, the interval from the last outbound message to when an automated ping should be sent.
- 
Field Details- 
PREFIXThe prefix to use for configuration.- See Also:
 
 
- 
- 
Constructor Details- 
Http2ClientConfigurationpublic Http2ClientConfiguration()
 
- 
- 
Method Details- 
getPingIntervalReadFor 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
 
- 
setPingIntervalReadFor 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
 
- 
getPingIntervalWriteFor 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
 
- 
setPingIntervalWriteFor 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
 
- 
getPingIntervalIdleFor 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
 
- 
setPingIntervalIdleFor 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
 
 
-