Packagecom.kaazing.gateway.jms.client
Classpublic class VoidFuture
InheritanceVoidFuture Inheritance com.kaazing.gateway.jms.client.GenericFuture

Future-based support for asynchronous functions returning void. 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.



Public Methods
 MethodDefined 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
Constructor detail
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.

Parameters
callback:Function
Method detail
checkError()method
public function checkError():void

Throws any errors caught during the execution of the asynchronous method.

fulfill()method 
public function fulfill():void

Called to indicate that the future has completed execution.

fulfillAsync()method 
public function fulfillAsync():void

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