ActionScript® 3.0 Reference for the Adobe® Flash® Platform
Home  |  Show Packages and Classes List |  Packages  |  Classes  |  What's New  |  Index  |  Appendixes
com.adobe.gravity.utility.async 

ImmediateSuccessToken  - AS3 ADEP Client Component

Packagecom.adobe.gravity.utility.async
Classpublic class ImmediateSuccessToken
InheritanceImmediateSuccessToken Inheritance Object
Implements IToken

Language Version: ActionScript 3.0
Product Version: Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10
Runtime Versions: AIR 1.1, Flash Player 9

ImmediateSuccessToken is an implementation of IToken that simply calls the success handlers "immediately" (on the next stack frame, so that recipients can add handlers to the token first). This is useful when implementing an interface that returns an IToken to allow for asynchronous behaviour, but the implementation is synchronous.



Public Properties
 PropertyDefined By
 Inheritedconstructor : Object
A reference to the class object or constructor function for a given object instance.
Object
Public Methods
 MethodDefined By
  
Construct an ImmediateSuccessToken.
ImmediateSuccessToken
  
addFaultHandler(handler:Function, weakReference:Boolean = false):void
Add a handler to be called if the operation fails.
ImmediateSuccessToken
  
addSuccessHandler(handler:Function, weakReference:Boolean = false):void
Add a handler to be called if the operation succeeds.
ImmediateSuccessToken
 Inherited
Indicates whether an object has a specified property defined.
Object
 Inherited
Indicates whether an instance of the Object class is in the prototype chain of the object specified as the parameter.
Object
 Inherited
Indicates whether the specified property exists and is enumerable.
Object
  
Remove a fault handler.
ImmediateSuccessToken
  
Remove a success handler.
ImmediateSuccessToken
 Inherited
Sets the availability of a dynamic property for loop operations.
Object
 Inherited
Returns the string representation of this object, formatted according to locale-specific conventions.
Object
 Inherited
Returns the string representation of the specified object.
Object
 Inherited
Returns the primitive value of the specified object.
Object
Constructor Detail

ImmediateSuccessToken

()Constructor
public function ImmediateSuccessToken(... params)

Language Version: ActionScript 3.0
Product Version: Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10
Runtime Versions: AIR 1.1, Flash Player 9

Construct an ImmediateSuccessToken. Pass in any parameters that are to be passed to the success handlers.

Parameters
... params — Zero or more parameters to be passed verbatim to any success handlers that have been added.
Method Detail

addFaultHandler

()method
public function addFaultHandler(handler:Function, weakReference:Boolean = false):void

Language Version: ActionScript 3.0
Product Version: Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10
Runtime Versions: AIR 1.1, Flash Player 9

Add a handler to be called if the operation fails.

Parameters

handler:Function — A function to be called if the operation fails.
 
weakReference:Boolean (default = false) — Use a weak reference to hold onto the handler.

addSuccessHandler

()method 
public function addSuccessHandler(handler:Function, weakReference:Boolean = false):void

Language Version: ActionScript 3.0
Product Version: Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10
Runtime Versions: AIR 1.1, Flash Player 9

Add a handler to be called if the operation succeeds.

Parameters

handler:Function — A function to be called if the operation succeeds.
 
weakReference:Boolean (default = false) — Use a weak reference to hold onto the handler.

removeFaultHandler

()method 
public function removeFaultHandler(handler:Function):void

Language Version: ActionScript 3.0
Product Version: Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10
Runtime Versions: AIR 1.1, Flash Player 9

Remove a fault handler.

Parameters

handler:Function — The handler to be removed.

removeSuccessHandler

()method 
public function removeSuccessHandler(handler:Function):void

Language Version: ActionScript 3.0
Product Version: Adobe Digital Enterprise Platform Experience Services - Client Component Framework 10
Runtime Versions: AIR 1.1, Flash Player 9

Remove a success handler.

Parameters

handler:Function — The handler to remove.