public class

ConnectionMigrationOptions

extends Object
java.lang.Object
   ↳ org.chromium.net.ConnectionMigrationOptions

Class Overview

A class configuring Cronet's 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.

See also:

Summary

Nested Classes
class ConnectionMigrationOptions.Builder Builder for ConnectionMigrationOptions. 
@interface ConnectionMigrationOptions.Experimental An annotation for APIs which are not considered stable yet. 
Public Constructors
ConnectionMigrationOptions(ConnectionMigrationOptions.Builder builder)
Public Methods
static ConnectionMigrationOptions.Builder builder()
Boolean getAllowNonDefaultNetworkUsage()
Boolean getAllowServerMigration()
Boolean getEnableDefaultNetworkMigration()
Boolean getEnablePathDegradationMigration()
Long getIdleMigrationPeriodSeconds()
Integer getMaxPathDegradingEagerMigrationsCount()
Long getMaxTimeOnNonDefaultNetworkSeconds()
Integer getMaxWriteErrorEagerMigrationsCount()
Boolean getMigrateIdleConnections()
Boolean getRetryPreHandshakeErrorsOnAlternateNetwork()
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public ConnectionMigrationOptions (ConnectionMigrationOptions.Builder builder)

Parameters
builder ConnectionMigrationOptions.Builder

Public Methods

public Boolean getAllowNonDefaultNetworkUsage ()

Returns
Boolean

public Boolean getAllowServerMigration ()

Returns
Boolean

public Boolean getEnableDefaultNetworkMigration ()

Returns
Boolean

public Boolean getEnablePathDegradationMigration ()

Returns
Boolean

public Long getIdleMigrationPeriodSeconds ()

Returns
Long

public Integer getMaxPathDegradingEagerMigrationsCount ()

Returns
Integer

public Long getMaxTimeOnNonDefaultNetworkSeconds ()

Returns
Long

public Integer getMaxWriteErrorEagerMigrationsCount ()

Returns
Integer

public Boolean getMigrateIdleConnections ()

Returns
Boolean

public Boolean getRetryPreHandshakeErrorsOnAlternateNetwork ()

Returns
Boolean