Packagecom.akamai.net.f4f.hds.events
Classpublic class AkamaiFragmentLoadRetryEvent
InheritanceAkamaiFragmentLoadRetryEvent Inheritance flash.events.Event

Dispatched when a fragment request is re-tried after a failed request.



Public Properties
 PropertyDefined 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
Public Methods
 MethodDefined By
  
AkamaiFragmentLoadRetryEvent(type:String, bubbles:Boolean = false, cancelable:Boolean = false, retryCount:Number, retryTotal:Number, retryInterval:Number, connectionLost:Boolean = false, triggerType:String)
Constructor.
AkamaiFragmentLoadRetryEvent
Public Constants
 ConstantDefined 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
Property Detail
connectionLostproperty
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.


Implementation
    public function get connectionLost():Boolean
retryCountproperty 
retryCount:Number  [read-only]

The current retry count.


Implementation
    public function get retryCount():Number
retryIntervalproperty 
retryInterval:Number  [read-only]

The retry interval in milliseconds. Failed fragment request will be retried at this interval until retryTotal is reached.


Implementation
    public function get retryInterval():Number
retryTotalproperty 
retryTotal:Number  [read-only]

The total number of times the fragment request will be retried before giving up.


Implementation
    public function get retryTotal():Number
triggerproperty 
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.


Implementation
    public function get trigger():String
Constructor Detail
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.

Parameters
type: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
Constant Detail
DATA_GAP_TRIGGER_TYPEConstant
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_TYPEConstant 
public static const ERROR_TRIGGER_TYPE:String = error

Retry triggered from an error with the download.

FRAGMENT_LOAD_RETRYConstant 
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.