ConnectionMigrationOptions
Stay organized with collections
Save and categorize content based on your preferences.
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.
Public Constructor Summary
Inherited Method Summary
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
Public Methods
public
Boolean
getAllowNonDefaultNetworkUsage
()
public
Boolean
getAllowServerMigration
()
public
Boolean
getEnableDefaultNetworkMigration
()
public
Boolean
getEnablePathDegradationMigration
()
public
Long
getIdleMigrationPeriodSeconds
()
public
Integer
getMaxPathDegradingEagerMigrationsCount
()
public
Long
getMaxTimeOnNonDefaultNetworkSeconds
()
public
Integer
getMaxWriteErrorEagerMigrationsCount
()
public
Boolean
getMigrateIdleConnections
()
public
Boolean
getRetryPreHandshakeErrorsOnAlternateNetwork
()
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2023-10-26 UTC.
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"Missing the information I need"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"Too complicated / too many steps"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"Out of date"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"Samples / code issue"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"Other"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"Easy to understand"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"Solved my problem"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"Other"
}]
{"lastModified": "Last updated 2023-10-26 UTC."}
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-10-26 UTC."]]