Class ContextUpdateService
- java.lang.Object
-
- de.adorsys.opba.protocol.xs2a.service.ContextUpdateService
-
@Service public class ContextUpdateService extends Object
Service that deals with optimistic lock exceptions when updating context. They happen when API received user input but we received outdated variable from database. Note that due to the how JsonCustomSerializer is implemented this class will always read correct context. If you create and persist Xs2aListAccountsContext it will be always read here as Xs2aListAccountsContext.
-
-
Constructor Summary
Constructors Constructor Description ContextUpdateService()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T> TupdateContext(String executionId, Function<T,T> updateCtx)
-