Last active
July 22, 2020 20:16
-
-
Save recursivecodes/72e0caba77ba485eff24df49c22088f5 to your computer and use it in GitHub Desktop.
InvokeAsync.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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