Package com.castlabs.android.network
Class NetworkConfiguration
java.lang.Object
com.castlabs.android.network.NetworkConfiguration
- All Implemented Interfaces:
Parcelable
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.ClassLoaderCreator<T extends Object>, Parcelable.Creator<T extends Object>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Parcelable.Creator<NetworkConfiguration>
Creator used by the Parcelable implementationfinal int
The connection timeout in milliseconds for DASH callbacksfinal int
The read timeout in milliseconds for DASH callbacksstatic final int
The default read timeout, in milliseconds.static final int
The default connection timeout, in milliseconds.static int
The timeout to use while discarding a download of input data.static final int
The default DRM acquisition timeout specific to DRM schemestatic final int
The default DRM connection timeout specific to DRM schemestatic final int
The default DRM read timeout specific to DRM schemestatic final int
The default read timeout, in milliseconds.static final int
The default thumbnail connection timeout, in milliseconds.static final int
The default thumbnail read timeout, in milliseconds.final int
The drain timeout in milliseconds.final int
The acquisition timeout in milliseconds for DRM requests.final int
The connection timeout in milliseconds for DRM requestsfinal int
The read timeout in milliseconds for DRM requestsfinal RetryConfiguration
final int
The acquisition timeout in milliseconds for IPTV-UDP/RTP requests.final int
The connection timeout in milliseconds for manifest requestsfinal int
The read timeout in milliseconds for manifest requestsfinal RetryConfiguration
TheRetryConfiguration
for manifest requests that will be to determine how often to retry after loading errorsfinal RetryConfiguration
final int
Sets the Call timeout for segment requests including the request, redirect and response This only currently works with the OkHttp Plugin.final int
The connection timeout in milliseconds for segment requestsfinal int
The read timeout in milliseconds for segment requestsfinal RetryConfiguration
TheRetryConfiguration
for segment requests that will be to determine how often to retry after loading errorsfinal int
The connection timeout in milliseconds for thumbnail requests.final int
The read timeout in milliseconds for thumbnail requests.Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionint
callTimeoutMs
(int requestType) int
connectionTimeoutMs
(int requestType) int
boolean
int
hashCode()
int
readTimeoutMs
(int requestType) toString()
void
writeToParcel
(Parcel dest, int flags)
-
Field Details
-
DEFAULT_CONNECT_TIMEOUT_MILLIS
public static final int DEFAULT_CONNECT_TIMEOUT_MILLISThe default connection timeout, in milliseconds.- See Also:
-
DEFAULT_READ_TIMEOUT_MILLIS
public static final int DEFAULT_READ_TIMEOUT_MILLISThe default read timeout, in milliseconds.- See Also:
-
DEFAULT_CALL_TIMEOUT_MILLIS
public static final int DEFAULT_CALL_TIMEOUT_MILLISThe default read timeout, in milliseconds.- See Also:
-
DEFAULT_DRM_CONNECT_TIMEOUT_MILLIS
public static final int DEFAULT_DRM_CONNECT_TIMEOUT_MILLISThe default DRM connection timeout specific to DRM scheme- See Also:
-
DEFAULT_DRM_READ_TIMEOUT_MILLIS
public static final int DEFAULT_DRM_READ_TIMEOUT_MILLISThe default DRM read timeout specific to DRM scheme- See Also:
-
DEFAULT_DRM_ACQUISITION_TIMEOUT_MILLIS
public static final int DEFAULT_DRM_ACQUISITION_TIMEOUT_MILLISThe default DRM acquisition timeout specific to DRM scheme- See Also:
-
DEFAULT_THUMBNAIL_CONNECT_TIMEOUT_MILLIS
public static final int DEFAULT_THUMBNAIL_CONNECT_TIMEOUT_MILLISThe default thumbnail connection timeout, in milliseconds.- See Also:
-
DEFAULT_THUMBNAIL_READ_TIMEOUT_MILLIS
public static final int DEFAULT_THUMBNAIL_READ_TIMEOUT_MILLISThe default thumbnail read timeout, in milliseconds.- See Also:
-
DEFAULT_DRAIN_CONNECTION_TIMEOUT_MS
public static int DEFAULT_DRAIN_CONNECTION_TIMEOUT_MSThe 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
Creator used by the Parcelable implementation -
manifestConnectionTimeoutMs
public final int manifestConnectionTimeoutMsThe connection timeout in milliseconds for manifest requests -
segmentsConnectionTimeoutMs
public final int segmentsConnectionTimeoutMsThe connection timeout in milliseconds for segment requests -
drmConnectionTimeoutMs
public final int drmConnectionTimeoutMsThe connection timeout in milliseconds for DRM requests -
dashCallbackConnectionTimeoutMs
public final int dashCallbackConnectionTimeoutMsThe connection timeout in milliseconds for DASH callbacks -
thumbnailConnectionTimeoutMs
public final int thumbnailConnectionTimeoutMsThe connection timeout in milliseconds for thumbnail requests. This timeout is used only if the ThumbsPlugin is registered. -
manifestReadTimeoutMs
public final int manifestReadTimeoutMsThe read timeout in milliseconds for manifest requests -
segmentsReadTimeoutMs
public final int segmentsReadTimeoutMsThe read timeout in milliseconds for segment requests -
drmReadTimeoutMs
public final int drmReadTimeoutMsThe read timeout in milliseconds for DRM requests -
dashCallbackReadTimeoutMs
public final int dashCallbackReadTimeoutMsThe read timeout in milliseconds for DASH callbacks -
thumbnailReadTimeoutMs
public final int thumbnailReadTimeoutMsThe read timeout in milliseconds for thumbnail requests. This timeout is used only if the ThumbsPlugin is registered. -
drmAcquisitionTimeoutMs
public final int drmAcquisitionTimeoutMsThe acquisition timeout in milliseconds for DRM requests. Maximum total time a single DRM request can take. -
drainConnectionTimeoutMs
public final int drainConnectionTimeoutMsThe 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 iptvReadTimeoutMsThe acquisition timeout in milliseconds for IPTV-UDP/RTP requests. Maximum total time a single IPTV Read request can take. -
segmentsCallTimeoutMs
public final int segmentsCallTimeoutMsSets the Call timeout for segment requests including the request, redirect and response This only currently works with the OkHttp Plugin. -
manifestRetryConfiguration
TheRetryConfiguration
for manifest requests that will be to determine how often to retry after loading errors -
segmentsRetryConfiguration
TheRetryConfiguration
for segment requests that will be to determine how often to retry after loading errors -
drmRetryConfiguration
-
provisioningRetryConfiguration
-
-
Constructor Details
-
NetworkConfiguration
public NetworkConfiguration()
-
-
Method Details
-
readTimeoutMs
public int readTimeoutMs(int requestType) - Parameters:
requestType
- The request type- Returns:
- The read timeout for the given request type
-
callTimeoutMs
public int callTimeoutMs(int requestType) - Parameters:
requestType
- The request type- Returns:
- The Call 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:
describeContents
in interfaceParcelable
-
writeToParcel
- Specified by:
writeToParcel
in interfaceParcelable
-
hashCode
public int hashCode() -
equals
-
toString
-