ConnectionMigrationOptions


open class ConnectionMigrationOptions
kotlin.Any
   ↳ android.net.http.ConnectionMigrationOptions

A class configuring the HTTP connection migration functionality.

Connection migration stops open connections to servers from being destroyed when the client device switches its L4 connectivity (typically the IP address as a result of using a different network). This is particularly common with mobile devices losing wifi connectivity and switching to cellular data, or vice versa (a.k.a. the parking lot problem). QUIC uses connection identifiers which are independent of the underlying transport layer to make this possible. If the client connects to a new network and wants to preserve the existing connection, they can do so by using a connection identifier the server knows to be a continuation of the existing connection.

The features are only available for QUIC connections and the server needs to support connection migration.

Summary

Nested classes

Builder for ConnectionMigrationOptions.

Constants
static Int

Option is disabled.

static Int

Option is enabled.

static Int

Option is unspecified, platform default value will be used.

Public methods
open Int

See Builder#setAllowNonDefaultNetworkUsage(int)

open Int

See Builder#setDefaultNetworkMigration(int)

open Int

See Builder#setPathDegradationMigration(int)

Constants

MIGRATION_OPTION_DISABLED

static val MIGRATION_OPTION_DISABLED: Int

Option is disabled.

Value: 2

MIGRATION_OPTION_ENABLED

static val MIGRATION_OPTION_ENABLED: Int

Option is enabled.

Value: 1

MIGRATION_OPTION_UNSPECIFIED

static val MIGRATION_OPTION_UNSPECIFIED: Int

Option is unspecified, platform default value will be used.

Value: 0

Public methods