Schnittstelle AsyncOperationCallback<T>
- Alle bekannten Implementierungsklassen:
AsyncCallbackAdapter
public interface AsyncOperationCallback<T>
User: Stephan Bösebeck
Date: 13.02.13
Time: 15:39
Callback interface for async calls
-
Methodenübersicht
Modifikator und TypMethodeBeschreibungvoidonOperationError(AsyncOperationType type, Query<T> q, long duration, String error, Throwable t, T entity, Object... param) callback for insuccesfull operationsvoidonOperationSucceeded(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
-
Methodendetails
-
onOperationSucceeded
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- Parameter:
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 null
-
onOperationError
void onOperationError(AsyncOperationType type, Query<T> q, long duration, String error, Throwable t, T entity, Object... param) callback for insuccesfull operations- Parameter:
type- - type of operation performedq- - the query (might be null)duration- - the durationerror- - error messaget- - the exception (if any)
-