public class TransactionLockInterceptor
extends org.drools.core.command.impl.AbstractInterceptor
Runner 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:
org.kie.tx.lock.enabled that must be set to trueTRANSACTION_LOCK_ENABLED that must be set to true| Constructor and Description |
|---|
TransactionLockInterceptor(org.kie.api.runtime.Environment environment) |
TransactionLockInterceptor(org.kie.api.runtime.Environment environment,
String releaseTxKey) |
| Modifier and Type | Method and Description |
|---|---|
protected void |
doRelease() |
org.kie.api.runtime.RequestContext |
execute(org.kie.api.runtime.Executable executable,
org.kie.api.runtime.RequestContext ctx) |
protected void |
release(TransactionManager txm) |
protected void |
releaseAfterFailure() |
executeNext, getNext, setNextclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitpublic TransactionLockInterceptor(org.kie.api.runtime.Environment environment)
public TransactionLockInterceptor(org.kie.api.runtime.Environment environment,
String releaseTxKey)
public org.kie.api.runtime.RequestContext execute(org.kie.api.runtime.Executable executable,
org.kie.api.runtime.RequestContext ctx)
execute in interface org.kie.api.runtime.ExecutableRunner<org.kie.api.runtime.RequestContext>execute in class org.drools.core.fluent.impl.PseudoClockRunnerprotected void release(TransactionManager txm)
protected void releaseAfterFailure()
protected void doRelease()
Copyright © 2001–2020 JBoss by Red Hat. All rights reserved.