Package org.mycore.util.concurrent
Class MCRFixedUserCallable<V>
java.lang.Object
org.mycore.util.concurrent.MCRTransactionableCallable<V>
org.mycore.util.concurrent.MCRFixedUserCallable<V>
- All Implemented Interfaces:
Callable<V>
,MCRDecorator<Callable<V>>
Encapsulates a
Callable
with a mycore session belonging to a specific user and a database transaction.- Author:
- Matthias Eichner
-
Field Summary
Fields inherited from class org.mycore.util.concurrent.MCRTransactionableCallable
session
-
Constructor Summary
ConstructorDescriptionMCRFixedUserCallable
(Callable<V> callable, MCRUserInformation userInfo) Creates a newCallable
encapsulating thecall()
method with a new SYSTEMMCRSession
and a database transaction. -
Method Summary
Methods inherited from class org.mycore.util.concurrent.MCRTransactionableCallable
get
-
Constructor Details
-
MCRFixedUserCallable
Creates a newCallable
encapsulating thecall()
method with a new SYSTEMMCRSession
and a database transaction. Afterwards the transaction will be committed and the session will be released and closed.- Parameters:
callable
- the callable to execute within a SYSTEM session and transactionuserInfo
- specify the user this callable should run
-
-
Method Details