QuicOptions

public final class QuicOptions


Cronet 中 QUIC 的設定選項。

只有在啟用 QUIC 時,這個類別中的設定才適用。使用 enableQuic 啟用 / 停用 Cronet 引擎的 QUIC。

摘要

巢狀型別

public class QuicOptions.Builder

QuicOptions 的建構工具。

API 的註解,表示 API 尚未穩定。

API 的註解,用於設定 Cronet 未管理的 QUICHE 選項。

公用方法

builder

public static QuicOptions.Builder builder()

getClientConnectionOptions

public Set<StringgetClientConnectionOptions()

getCloseSessionsOnIpChange

public @Nullable Boolean getCloseSessionsOnIpChange()

getConnectionOptions

public Set<StringgetConnectionOptions()

getCryptoHandshakeTimeoutSeconds

public @Nullable Long getCryptoHandshakeTimeoutSeconds()

getDelayJobsWithAvailableSpdySession

public @Nullable Boolean getDelayJobsWithAvailableSpdySession()

getEnableTlsZeroRtt

public @Nullable Boolean getEnableTlsZeroRtt()

getEnabledQuicVersions

public Set<StringgetEnabledQuicVersions()

getExtraQuicheFlags

public Set<StringgetExtraQuicheFlags()

getGoawaySessionsOnIpChange

public @Nullable Boolean getGoawaySessionsOnIpChange()

getHandshakeUserAgent

public @Nullable String getHandshakeUserAgent()

getIdleConnectionTimeoutSeconds

public @Nullable Long getIdleConnectionTimeoutSeconds()

getInMemoryServerConfigsCacheSize

public @Nullable Integer getInMemoryServerConfigsCacheSize()

getIncreaseBrokenServicePeriodExponentially

public @Nullable Boolean getIncreaseBrokenServicePeriodExponentially()

getInitialBrokenServicePeriodSeconds

public @Nullable Long getInitialBrokenServicePeriodSeconds()

getPreCryptoHandshakeIdleTimeoutSeconds

public @Nullable Long getPreCryptoHandshakeIdleTimeoutSeconds()

getQuicHostAllowlist

public Set<StringgetQuicHostAllowlist()

getRetransmittableOnWireTimeoutMillis

public @Nullable Long getRetransmittableOnWireTimeoutMillis()

getRetryWithoutAltSvcOnQuicErrors

public @Nullable Boolean getRetryWithoutAltSvcOnQuicErrors()