ConnectionMigrationOptions

class ConnectionMigrationOptions


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

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

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

요약

중첩된 유형

ConnectionMigrationOptions의 빌더입니다.

아직 안정적이지 않은 API의 주석입니다.

공개 함수

builder

java-static fun builder(): ConnectionMigrationOptions.Builder!

getAllowNonDefaultNetworkUsage

fun getAllowNonDefaultNetworkUsage(): Boolean?

getAllowServerMigration

fun getAllowServerMigration(): Boolean?

getEnableDefaultNetworkMigration

fun getEnableDefaultNetworkMigration(): Boolean?

getEnablePathDegradationMigration

fun getEnablePathDegradationMigration(): Boolean?

getIdleMigrationPeriodSeconds

fun getIdleMigrationPeriodSeconds(): Long?

getMaxPathDegradingEagerMigrationsCount

fun getMaxPathDegradingEagerMigrationsCount(): Int?

getMaxTimeOnNonDefaultNetworkSeconds

fun getMaxTimeOnNonDefaultNetworkSeconds(): Long?

getMaxWriteErrorEagerMigrationsCount

fun getMaxWriteErrorEagerMigrationsCount(): Int?

getMigrateIdleConnections

fun getMigrateIdleConnections(): Boolean?

getRetryPreHandshakeErrorsOnAlternateNetwork

fun getRetryPreHandshakeErrorsOnAlternateNetwork(): Boolean?