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

Author(s):
Rob Rua (FatalElement - NA) (robrua@alumni.cmu.edu)
 
public abstract class Action<T> {
    
Handles an APIException which occurred while completing an async call

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

    
Performs the action on the API response data

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