public abstract class Callback<T>
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
int |
attempts |
| Constructor and Description |
|---|
Callback() |
| Modifier and Type | Method and Description |
|---|---|
abstract void |
failure(ApiException apiException)
Called for all errors.
|
abstract void |
success(T t)
Called for [200, 300) responses.
|
public abstract void success(T t)
public abstract void failure(ApiException apiException)