Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package com.robrua.orianna.type.api;
Used for the AsyncAPI to ease asynchronous API calls

Rob Rua (FatalElement - NA) (
public abstract class Action<T> {
Handles an APIException which occurred while completing an async call

exception the exception to handle
    public abstract void handle(APIException exception);

Performs the action on the API response data

responseData the API call's result
    public abstract void perform(T responseData);
New to GrepCode? Check out our FAQ X