Package | com.kaazing.gateway.client.security |
Class | public class ChallengeResponseFuture |
Inheritance | ChallengeResponseFuture ![]() |
Method | Defined by | ||
---|---|---|---|
ChallengeResponseFuture(callback:Function = null)
Future-based support for asynchronous functions returning a value.
| ChallengeResponseFuture | ||
checkError():void
Throws any errors caught during the execution of the
asynchronous method.
| ChallengeResponseFuture | ||
fulfill(challengeResponse:ChallengeResponse):void
Called when the future has completed execution.
| ChallengeResponseFuture | ||
Returns the result of the function executed.
| ChallengeResponseFuture |
ChallengeResponseFuture | () | constructor |
public function ChallengeResponseFuture(callback:Function = null)
Future-based support for asynchronous functions returning a value. Methods that would block instead accept a callback which is called when its execution completes asynchronously. Once the callback is invoked, call get() to fetch the value. Any errors that were caught during execution of the asynchronous function will be thrown from get() and checkError().
Parameterscallback:Function (default = null )
|
checkError | () | method |
public function checkError():void
Throws any errors caught during the execution of the asynchronous method.
fulfill | () | method |
public function fulfill(challengeResponse:ChallengeResponse):void
Called when the future has completed execution. Calls to fulfill() should only be made to indicate completion of a function call.
ParameterschallengeResponse:ChallengeResponse |
get | () | method |
public function get():ChallengeResponse
Returns the result of the function executed. This should be called only after the future is fulfilled, for example, from within the function body of a callback passed to an asynchronous method.
ReturnsChallengeResponse |