Package com.castlabs.android.network
Class NetworkConfiguration
- java.lang.Object
-
- com.castlabs.android.network.NetworkConfiguration
-
- All Implemented Interfaces:
Parcelable
public class NetworkConfiguration extends Object implements Parcelable
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classNetworkConfiguration.Builder-
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<T extends Object>, Parcelable.Creator<T extends Object>
-
-
Field Summary
Fields Modifier and Type Field Description static Parcelable.Creator<NetworkConfiguration>CREATORCreator used by the Parcelable implementationintdashCallbackConnectionTimeoutMsThe connection timeout in milliseconds for DASH callbacksintdashCallbackReadTimeoutMsThe read timeout in milliseconds for DASH callbacksstatic intDEFAULT_CONNECT_TIMEOUT_MILLISThe default connection timeout, in milliseconds.static intDEFAULT_DRAIN_CONNECTION_TIMEOUT_MSThe timeout to use while discarding a download of input data.static intDEFAULT_DRM_ACQUISITION_TIMEOUT_MILLISThe default DRM acquisition timeout specific to DRM schemestatic intDEFAULT_DRM_CONNECT_TIMEOUT_MILLISThe default DRM connection timeout specific to DRM schemestatic intDEFAULT_DRM_READ_TIMEOUT_MILLISThe default DRM read timeout specific to DRM schemestatic intDEFAULT_READ_TIMEOUT_MILLISThe default read timeout, in milliseconds.intdrainConnectionTimeoutMsThe drain timeout in milliseconds.intdrmAcquisitionTimeoutMsThe acquisition timeout in milliseconds for DRM requests.intdrmConnectionTimeoutMsThe connection timeout in milliseconds for DRM requestsintdrmReadTimeoutMsThe read timeout in milliseconds for DRM requestsRetryConfigurationdrmRetryConfigurationintiptvReadTimeoutMsThe acquisition timeout in milliseconds for IPTV-UDP/RTP requests.intmanifestConnectionTimeoutMsThe connection timeout in milliseconds for manifest requestsintmanifestReadTimeoutMsThe read timeout in milliseconds for manifest requestsRetryConfigurationmanifestRetryConfigurationTheRetryConfigurationfor manifest requests that will be to determine how often to retry after loading errorsRetryConfigurationprovisioningRetryConfigurationintsegmentsConnectionTimeoutMsThe connection timeout in milliseconds for segment requestsintsegmentsReadTimeoutMsThe read timeout in milliseconds for segment requestsRetryConfigurationsegmentsRetryConfigurationTheRetryConfigurationfor segment requests that will be to determine how often to retry after loading errors-
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
-
Constructor Summary
Constructors Constructor Description NetworkConfiguration()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intconnectionTimeoutMs(int requestType)intdescribeContents()booleanequals(Object obj)inthashCode()intreadTimeoutMs(int requestType)StringtoString()voidwriteToParcel(Parcel dest, int flags)
-
-
-
Field Detail
-
DEFAULT_CONNECT_TIMEOUT_MILLIS
public static final int DEFAULT_CONNECT_TIMEOUT_MILLIS
The default connection timeout, in milliseconds.- See Also:
- Constant Field Values
-
DEFAULT_READ_TIMEOUT_MILLIS
public static final int DEFAULT_READ_TIMEOUT_MILLIS
The default read timeout, in milliseconds.- See Also:
- Constant Field Values
-
DEFAULT_DRM_CONNECT_TIMEOUT_MILLIS
public static final int DEFAULT_DRM_CONNECT_TIMEOUT_MILLIS
The default DRM connection timeout specific to DRM scheme- See Also:
- Constant Field Values
-
DEFAULT_DRM_READ_TIMEOUT_MILLIS
public static final int DEFAULT_DRM_READ_TIMEOUT_MILLIS
The default DRM read timeout specific to DRM scheme- See Also:
- Constant Field Values
-
DEFAULT_DRM_ACQUISITION_TIMEOUT_MILLIS
public static final int DEFAULT_DRM_ACQUISITION_TIMEOUT_MILLIS
The default DRM acquisition timeout specific to DRM scheme- See Also:
- Constant Field Values
-
DEFAULT_DRAIN_CONNECTION_TIMEOUT_MS
public static int DEFAULT_DRAIN_CONNECTION_TIMEOUT_MS
The timeout to use while discarding a download of input data. This is the time that we allow the connection to drain and finish before the download is aborted. If the download can be drained in time, it increases the chance that the connection can be reused. This timeout should be significantly less than the time it takes to establish a new connection.
-
CREATOR
public static final Parcelable.Creator<NetworkConfiguration> CREATOR
Creator used by the Parcelable implementation
-
manifestConnectionTimeoutMs
public final int manifestConnectionTimeoutMs
The connection timeout in milliseconds for manifest requests
-
segmentsConnectionTimeoutMs
public final int segmentsConnectionTimeoutMs
The connection timeout in milliseconds for segment requests
-
drmConnectionTimeoutMs
public final int drmConnectionTimeoutMs
The connection timeout in milliseconds for DRM requests
-
dashCallbackConnectionTimeoutMs
public final int dashCallbackConnectionTimeoutMs
The connection timeout in milliseconds for DASH callbacks
-
manifestReadTimeoutMs
public final int manifestReadTimeoutMs
The read timeout in milliseconds for manifest requests
-
segmentsReadTimeoutMs
public final int segmentsReadTimeoutMs
The read timeout in milliseconds for segment requests
-
drmReadTimeoutMs
public final int drmReadTimeoutMs
The read timeout in milliseconds for DRM requests
-
dashCallbackReadTimeoutMs
public final int dashCallbackReadTimeoutMs
The read timeout in milliseconds for DASH callbacks
-
drmAcquisitionTimeoutMs
public final int drmAcquisitionTimeoutMs
The acquisition timeout in milliseconds for DRM requests. Maximum total time a single DRM request can take.
-
drainConnectionTimeoutMs
public final int drainConnectionTimeoutMs
The drain timeout in milliseconds. This is the time that we give the player to drain and read all remaining data when a connection is closed. If all data can be drained in time, the connection can potentially be re-used.
-
iptvReadTimeoutMs
public final int iptvReadTimeoutMs
The acquisition timeout in milliseconds for IPTV-UDP/RTP requests. Maximum total time a single IPTV Read request can take.
-
manifestRetryConfiguration
@NonNull public final RetryConfiguration manifestRetryConfiguration
TheRetryConfigurationfor manifest requests that will be to determine how often to retry after loading errors
-
segmentsRetryConfiguration
@NonNull public final RetryConfiguration segmentsRetryConfiguration
TheRetryConfigurationfor segment requests that will be to determine how often to retry after loading errors
-
drmRetryConfiguration
@NonNull public final RetryConfiguration drmRetryConfiguration
-
provisioningRetryConfiguration
@NonNull public final RetryConfiguration provisioningRetryConfiguration
-
-
Method Detail
-
readTimeoutMs
public int readTimeoutMs(int requestType)
- Parameters:
requestType- The request type- Returns:
- The read timeout for the given request type
-
connectionTimeoutMs
public int connectionTimeoutMs(int requestType)
- Parameters:
requestType- The request type- Returns:
- The connection timeout for the given request type
-
describeContents
public int describeContents()
- Specified by:
describeContentsin interfaceParcelable
-
writeToParcel
public void writeToParcel(Parcel dest, int flags)
- Specified by:
writeToParcelin interfaceParcelable
-
-