| Package | com.kaazing.gateway.jms.client |
| Class | public class VoidFuture |
| Inheritance | VoidFuture com.kaazing.gateway.jms.client.GenericFuture |
| Method | Defined by | ||
|---|---|---|---|
|
VoidFuture(callback:Function)
Future-based support for asynchronous handling of synchronous returns.
| VoidFuture | ||
|
checkError():void
Throws any errors caught during the execution of the
asynchronous method.
| VoidFuture | ||
|
fulfill():void
Called to indicate that the future has completed execution.
| VoidFuture | ||
|
fulfillAsync():void
Called to indicate that the future has completed execution
from a synchronous call.
| VoidFuture | ||
| VoidFuture | () | constructor |
public function VoidFuture(callback:Function)Future-based support for asynchronous handling of synchronous returns. Methods that would block instead accept a callback which is called when its execution completes asynchronously. Once the callback is invoked, call checkError() to ensure that no errors occurred during processing.
Parameterscallback:Function |
| checkError | () | method |
public function checkError():voidThrows any errors caught during the execution of the asynchronous method.
| fulfill | () | method |
public function fulfill():voidCalled to indicate that the future has completed execution.
| fulfillAsync | () | method |
public function fulfillAsync():voidCalled to indicate that the future has completed execution from a synchronous call. setTimeout is called internally to ensure that the future is returned before calling fulfill.