Package | com.akamai.net.f4f.hds.events |
Class | public class AkamaiFragmentLoadRetryEvent |
Inheritance | AkamaiFragmentLoadRetryEvent flash.events.Event |
Property | Defined By | ||
---|---|---|---|
connectionLost : Boolean [read-only]
Connection lost will be set to true once the connectivity test is complete. | AkamaiFragmentLoadRetryEvent | ||
retryCount : Number [read-only]
The current retry count. | AkamaiFragmentLoadRetryEvent | ||
retryInterval : Number [read-only]
The retry interval in milliseconds. | AkamaiFragmentLoadRetryEvent | ||
retryTotal : Number [read-only]
The total number of times the fragment request
will be retried before giving up. | AkamaiFragmentLoadRetryEvent | ||
trigger : String [read-only]
What caused the retry attempt to be triggered. | AkamaiFragmentLoadRetryEvent |
Method | Defined By | ||
---|---|---|---|
AkamaiFragmentLoadRetryEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, retryCount:Number, retryTotal:Number, retryInterval:Number, connectionLost:Boolean = false, triggerType:String)
Constructor. | AkamaiFragmentLoadRetryEvent |
Constant | Defined By | ||
---|---|---|---|
DATA_GAP_TRIGGER_TYPE : String = dataGap [static]
Retry triggered from a gap in the data, meaning no bytes have been
received for a period of time determined by the dispatching class. | AkamaiFragmentLoadRetryEvent | ||
ERROR_TRIGGER_TYPE : String = error [static]
Retry triggered from an error with the download. | AkamaiFragmentLoadRetryEvent | ||
FRAGMENT_LOAD_RETRY : String = fragmentLoadRetry [static]
This event type is dispached when a fragment load is retried. | AkamaiFragmentLoadRetryEvent |
connectionLost | property |
connectionLost:Boolean
[read-only] Connection lost will be set to true once the connectivity test is complete. This test will be only be performed if the server liveness test fails. It is representative of general internet connectivity loss.
public function get connectionLost():Boolean
retryCount | property |
retryCount:Number
[read-only] The current retry count.
public function get retryCount():Number
retryInterval | property |
retryInterval:Number
[read-only]
The retry interval in milliseconds. Failed fragment request
will be retried at this interval until
retryTotal
is reached.
public function get retryInterval():Number
retryTotal | property |
retryTotal:Number
[read-only] The total number of times the fragment request will be retried before giving up.
public function get retryTotal():Number
trigger | property |
trigger:String
[read-only] What caused the retry attempt to be triggered. It can be due to a Data Gap, IO Error, or Security Error. Will return one of the constants defined in this class.
public function get trigger():String
AkamaiFragmentLoadRetryEvent | () | Constructor |
public function AkamaiFragmentLoadRetryEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, retryCount:Number, retryTotal:Number, retryInterval:Number, connectionLost:Boolean = false, triggerType:String)
Constructor.
Parameterstype:String — Event type.
| |
bubbles:Boolean (default = false ) — Specifies whether the event can bubble up the display list hierarchy.
| |
cancelable:Boolean (default = false ) — Specifies whether the behavior associated with the event can be prevented.
| |
retryCount:Number (default = NaN )
| |
retryTotal:Number (default = NaN )
| |
retryInterval:Number (default = NaN )
| |
connectionLost:Boolean (default = false )
| |
triggerType:String |
DATA_GAP_TRIGGER_TYPE | Constant |
public static const DATA_GAP_TRIGGER_TYPE:String = dataGap
Retry triggered from a gap in the data, meaning no bytes have been received for a period of time determined by the dispatching class.
ERROR_TRIGGER_TYPE | Constant |
public static const ERROR_TRIGGER_TYPE:String = error
Retry triggered from an error with the download.
FRAGMENT_LOAD_RETRY | Constant |
public static const FRAGMENT_LOAD_RETRY:String = fragmentLoadRetry
This event type is dispached when a fragment load is retried. The
trigger
property will denote the reason for the
retry and will either be due to an error or a data gap.