-
public final class EmulateNetworkConditionsRequestRequest object containing input parameters for the NetworkDomain.emulateNetworkConditions command.
-
-
Field Summary
Fields Modifier and Type Field Description private final Booleanofflineprivate final Doublelatencyprivate final DoubledownloadThroughputprivate final DoubleuploadThroughputprivate final ConnectionTypeconnectionType
-
Constructor Summary
Constructors Constructor Description EmulateNetworkConditionsRequest(Boolean offline, Double latency, Double downloadThroughput, Double uploadThroughput, ConnectionType connectionType)
-
Method Summary
Modifier and Type Method Description final Booleancomponent1()final Doublecomponent2()final Doublecomponent3()final Doublecomponent4()final ConnectionTypecomponent5()final EmulateNetworkConditionsRequestcopy(Boolean offline, Double latency, Double downloadThroughput, Double uploadThroughput, ConnectionType connectionType)final BooleangetOffline()True to emulate internet disconnection. final DoublegetLatency()Minimum latency from request sent to response headers received (ms). final DoublegetDownloadThroughput()Maximal aggregated download throughput (bytes/sec). final DoublegetUploadThroughput()Maximal aggregated upload throughput (bytes/sec). final ConnectionTypegetConnectionType()Connection type if known. -
-
Constructor Detail
-
EmulateNetworkConditionsRequest
EmulateNetworkConditionsRequest(Boolean offline, Double latency, Double downloadThroughput, Double uploadThroughput, ConnectionType connectionType)
-
-
Method Detail
-
component1
final Boolean component1()
-
component2
final Double component2()
-
component3
final Double component3()
-
component4
final Double component4()
-
component5
final ConnectionType component5()
-
copy
final EmulateNetworkConditionsRequest copy(Boolean offline, Double latency, Double downloadThroughput, Double uploadThroughput, ConnectionType connectionType)
-
getOffline
final Boolean getOffline()
True to emulate internet disconnection.
-
getLatency
final Double getLatency()
Minimum latency from request sent to response headers received (ms).
-
getDownloadThroughput
final Double getDownloadThroughput()
Maximal aggregated download throughput (bytes/sec). -1 disables download throttling.
-
getUploadThroughput
final Double getUploadThroughput()
Maximal aggregated upload throughput (bytes/sec). -1 disables upload throttling.
-
getConnectionType
final ConnectionType getConnectionType()
Connection type if known.
-
-
-
-