CICS® Transaction Gateway Base API Programming Reference v8.1.0.2

com.ibm.ctg.client
Interface Callbackable

All Superinterfaces:
java.lang.Runnable

public interface Callbackable
extends java.lang.Runnable

The asynchronous model supported by the CICS Transaction Gateway allows the use of callback objects. When an asynchronous call is completed the user supplied callback object is called with the results of the asynchronous call, and is then run on it's own thread.

This interface defines the methods that a Callbackable object must provide. It is derived from the standard Runnable interface, adding only one additional method. This method, setResults, is called prior to the object being run, to pass in the results of the asynchronous call.

Please refer to the samples for examples of using this interface.


Method Summary
 void setResults(GatewayRequest gatResults)
          This method is called prior to a Callbackable object being run.
 
Methods inherited from interface java.lang.Runnable
run
 

Method Detail

setResults

void setResults(GatewayRequest gatResults)
This method is called prior to a Callbackable object being run. The Callbackable object should store the supplied GatewayRequest object for use when it is run.

Parameters:
gatResults - GatewayRequest object containing the results of the asynchronous call which is causing us to be run. This may be cast into the appropriate Request object.

©Copyright IBM Corp. 1994, 2012
Legal