FunctionCallback Interface
Represents the callback Salesforce calls when an asynchronous, queued Function invocation has completed.
When invoking Functions asynchronously via Function.invoke(payload, callback), you provide your own class that implements FunctionCallback.
The following are methods for FunctionCallback.
-
Called when an asynchronous Function invocation has completed.
Called when an asynchronous Function invocation has completed.
public void handleResponse(functions.FunctionInvocation var1)
- var1: Type: functions.FunctionInvocation The result parameter contains JSON response information and error information.
Type: void
This is an example implementation of the functions.FunctionCallback interface.
The following example uses this implementation when invoking a Function asynchronously: