public class AsyncCallbackAdapter<T> extends Object implements AsyncOperationCallback<T>
| Constructor and Description |
|---|
AsyncCallbackAdapter() |
| Modifier and Type | Method and Description |
|---|---|
void |
onOperationError(AsyncOperationType type,
Query<T> q,
long duration,
String error,
Throwable t,
T entity,
Object... param)
callback for insuccesfull operations
|
void |
onOperationSucceeded(AsyncOperationType type,
Query<T> q,
long duration,
List<T> result,
T entity,
Object... param)
throw morphium access veto exception if you want to stop any subsequent calls
|
public void onOperationSucceeded(AsyncOperationType type, Query<T> q, long duration, List<T> result, T entity, Object... param)
AsyncOperationCallbackonOperationSucceeded in interface AsyncOperationCallback<T>type - - type of operation performedq - - the query for the operation (might be null)duration - - duration of the whole thingresult - - list of all results, might be null (on update or remove)param - - the parameter (e.g. the object to store, or the list of objects) - might be nullpublic void onOperationError(AsyncOperationType type, Query<T> q, long duration, String error, Throwable t, T entity, Object... param)
AsyncOperationCallbackonOperationError in interface AsyncOperationCallback<T>type - - type of operation performedq - - the query (might be null)duration - - the durationerror - - error messaget - - the exception (if any)Copyright © 2021. All rights reserved.