Package de.caluga.morphium.async
Klasse AsyncCallbackAdapter<T>
java.lang.Object
de.caluga.morphium.async.AsyncCallbackAdapter<T>
- Alle implementierten Schnittstellen:
AsyncOperationCallback<T>
-
Konstruktorübersicht
Konstruktoren -
Methodenübersicht
Modifizierer 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
-
Konstruktordetails
-
AsyncCallbackAdapter
public AsyncCallbackAdapter()
-
-
Methodendetails
-
onOperationSucceeded
public void onOperationSucceeded(AsyncOperationType type, Query<T> q, long duration, List<T> result, T entity, Object... param) Beschreibung aus Schnittstelle kopiert:AsyncOperationCallbackthrow morphium access veto exception if you want to stop any subsequent calls- Angegeben von:
onOperationSucceededin SchnittstelleAsyncOperationCallback<T>- 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
public void onOperationError(AsyncOperationType type, Query<T> q, long duration, String error, Throwable t, T entity, Object... param) Beschreibung aus Schnittstelle kopiert:AsyncOperationCallbackcallback for insuccesfull operations- Angegeben von:
onOperationErrorin SchnittstelleAsyncOperationCallback<T>- Parameter:
type- - type of operation performedq- - the query (might be null)duration- - the durationerror- - error messaget- - the exception (if any)
-