ConnectionMigrationOptions

public final class ConnectionMigrationOptions


Cronet의 연결 이전 기능을 구성하는 클래스입니다.

연결 이전은 클라이언트 기기가 L4 연결 (일반적으로 다른 네트워크를 사용한 결과로 IP 주소)을 전환할 때 서버에 대한 열린 연결이 소멸되는 것을 방지합니다. 이는 모바일 기기가 Wi-Fi 연결이 끊기고 셀룰러 데이터로 전환하거나 그 반대의 경우 (일명 주차장 문제)에 특히 일반적입니다. QUIC는 기본 전송 레이어와 독립적인 연결 식별자를 사용하여 이를 가능하게 합니다. 클라이언트가 새 네트워크에 연결하고 기존 연결을 유지하려는 경우 서버가 기존 연결의 연속으로 인식하는 연결 식별자를 사용하여 이 작업을 실행할 수 있습니다.

이 기능은 QUIC 연결에서만 사용할 수 있으며 서버에서 연결 이전을 지원해야 합니다.

요약

중첩된 유형

ConnectionMigrationOptions의 빌더입니다.

아직 안정적인 것으로 간주되지 않는 API의 주석입니다.

공개 메서드

builder

public static ConnectionMigrationOptions.Builder builder()

getAllowNonDefaultNetworkUsage

public @Nullable Boolean getAllowNonDefaultNetworkUsage()

getAllowServerMigration

public @Nullable Boolean getAllowServerMigration()

getEnableDefaultNetworkMigration

public @Nullable Boolean getEnableDefaultNetworkMigration()

getEnablePathDegradationMigration

public @Nullable Boolean getEnablePathDegradationMigration()

getIdleMigrationPeriodSeconds

public @Nullable Long getIdleMigrationPeriodSeconds()

getMaxPathDegradingEagerMigrationsCount

public @Nullable Integer getMaxPathDegradingEagerMigrationsCount()

getMaxTimeOnNonDefaultNetworkSeconds

public @Nullable Long getMaxTimeOnNonDefaultNetworkSeconds()

getMaxWriteErrorEagerMigrationsCount

public @Nullable Integer getMaxWriteErrorEagerMigrationsCount()

getMigrateIdleConnections

public @Nullable Boolean getMigrateIdleConnections()

getRetryPreHandshakeErrorsOnAlternateNetwork

public @Nullable Boolean getRetryPreHandshakeErrorsOnAlternateNetwork()