org.drools.persistence.jta
Class TransactionLockInterceptor
java.lang.Object
org.drools.core.command.impl.AbstractInterceptor
org.drools.persistence.jta.TransactionLockInterceptor
- All Implemented Interfaces:
- org.drools.core.command.CommandService, org.drools.core.command.Interceptor, org.kie.api.runtime.CommandExecutor
public class TransactionLockInterceptor
- extends org.drools.core.command.impl.AbstractInterceptor
Interceptor that will lock underlying CommandService until transaction completion.
In case there is no transaction active lock is released directly.
By default, interceptor is disabled and needs to be explicitly enabled in one of two ways:
- using system property named
org.kie.tx.lock.enabled that must be set to true
- using environment entry named
TRANSACTION_LOCK_ENABLED that must be set to true
| Methods inherited from class org.drools.core.command.impl.AbstractInterceptor |
executeNext, getContext, getNext, setNext |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
TransactionLockInterceptor
public TransactionLockInterceptor(org.kie.api.runtime.Environment environment)
execute
public <T> T execute(org.kie.api.command.Command<T> command)
release
protected void release(TransactionManager txm)
Copyright © 2001-2014 JBoss by Red Hat. All Rights Reserved.