public class TransactionLockInterceptor
extends org.drools.core.command.impl.AbstractInterceptor
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:
org.kie.tx.lock.enabled
that must be set to trueTRANSACTION_LOCK_ENABLED
that must be set to trueConstructor 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() |
<T> T |
execute(org.kie.api.command.Command<T> command) |
protected void |
release(TransactionManager txm) |
protected void |
releaseAfterFailure() |
public TransactionLockInterceptor(org.kie.api.runtime.Environment environment)
public TransactionLockInterceptor(org.kie.api.runtime.Environment environment, String releaseTxKey)
public <T> T execute(org.kie.api.command.Command<T> command)
protected void release(TransactionManager txm)
protected void releaseAfterFailure()
protected void doRelease()
Copyright © 2001–2016 JBoss by Red Hat. All rights reserved.