FunctionCallback Interface

Represents the callback Salesforce calls when an asynchronous, queued Function invocation has completed.

functions

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.

public void handleResponse(functions.FunctionInvocation var1)

Type: void

This is an example implementation of the functions.FunctionCallback interface.

The following example uses this implementation when invoking a Function asynchronously: