public interface InvokerHandler
| Modifier and Type | Method and Description |
|---|---|
void |
generateErrorLog(java.lang.Long networkId,
java.lang.Long configurationId,
java.lang.Long loggedUserId,
java.lang.String operation,
java.lang.Throwable thowable)
Generates an error log in a new transaction
|
org.cyclos.impl.utils.logging.LogContext |
getLogContext(SessionData sessionData,
java.lang.String serviceName,
java.lang.String methodName,
java.lang.Object... parameters)
Returns log information about a service invocation.
|
RequestData |
getRequestDataWithNetwork(Network network)
Return a
RequestData instance for the specified Network |
InvocationResult |
invoke(SessionData sessionData,
InvocationData invocationData)
Invokes the given service interface, with the given parameters
|
<T> T |
runAs(SessionData sessionData,
java.util.concurrent.Callable<T> callable)
Runs the given
Callable using the given SessionData, within the caller's transaction |
<T> T |
runAsInCurrentOrNewTransaction(SessionData sessionData,
TransactionLevel level,
org.springframework.transaction.support.TransactionCallback<T> callback)
If there is a transaction in the current thread with a compatible transaction level as the given one, runs the
given transaction callback in the current transaction.
|
<T> java.util.concurrent.Future<T> |
runAsInParallelTransaction(SessionData sessionData,
TransactionLevel transactionLevel,
org.springframework.transaction.support.TransactionCallback<T> callback)
Submits a new transaction to be executed in a new thread, with the given
TransactionLevel, within
the context of the given SessionData |
<T> T |
runAsInTransaction(SessionData sessionData,
TransactionLevel transactionLevel,
org.springframework.transaction.support.TransactionCallback<T> callback)
Runs the given
TransactionCallback in a transaction in the current thread, with the given
TransactionLevel, within the context of the given SessionData |
void generateErrorLog(java.lang.Long networkId,
java.lang.Long configurationId,
java.lang.Long loggedUserId,
java.lang.String operation,
java.lang.Throwable thowable)
org.cyclos.impl.utils.logging.LogContext getLogContext(SessionData sessionData, java.lang.String serviceName, java.lang.String methodName, java.lang.Object... parameters)
RequestData getRequestDataWithNetwork(Network network)
RequestData instance for the specified NetworkInvocationResult invoke(SessionData sessionData, InvocationData invocationData) throws IllegalInvocationException
IllegalInvocationException<T> T runAs(SessionData sessionData, java.util.concurrent.Callable<T> callable)
Callable using the given SessionData, within the caller's transaction<T> T runAsInCurrentOrNewTransaction(SessionData sessionData, TransactionLevel level, org.springframework.transaction.support.TransactionCallback<T> callback) throws RetryException
RetryException to force a new
transaction with the given level to be created, so the next time it will be compatibleRetryException - If the current transaction level is not compatible with the given one<T> java.util.concurrent.Future<T> runAsInParallelTransaction(SessionData sessionData, TransactionLevel transactionLevel, org.springframework.transaction.support.TransactionCallback<T> callback)
TransactionLevel, within
the context of the given SessionData<T> T runAsInTransaction(SessionData sessionData, TransactionLevel transactionLevel, org.springframework.transaction.support.TransactionCallback<T> callback)
TransactionCallback in a transaction in the current thread, with the given
TransactionLevel, within the context of the given SessionData