Skip to content

Instantly share code, notes, and snippets.

@recursivecodes
Last active July 22, 2020 20:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save recursivecodes/72e0caba77ba485eff24df49c22088f5 to your computer and use it in GitHub Desktop.
Save recursivecodes/72e0caba77ba485eff24df49c22088f5 to your computer and use it in GitHub Desktop.
InvokeAsync.java
AsyncHandler<InvokeFunctionRequest, InvokeFunctionResponse> handler = new AsyncHandler<>() {
@Override
public void onSuccess(InvokeFunctionRequest invokeFunctionRequest, InvokeFunctionResponse invokeFunctionResponse) {
try {
System.out.println(IOUtils.toString(invokeFunctionResponse.getInputStream()));
} catch (IOException e) {
e.printStackTrace();
}
}
@Override
public void onError(InvokeFunctionRequest invokeFunctionRequest, Throwable error) {
error.printStackTrace();
}
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment