Package org.drools.persistence
Class PersistableRunner
java.lang.Object
org.drools.persistence.PersistableRunner
- All Implemented Interfaces:
InternalLocalRunner,SingleSessionCommandService,CommandExecutor,ExecutableRunner<RequestContext>
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic classclassNested classes/interfaces inherited from interface org.drools.commands.InternalLocalRunner
InternalLocalRunner.SingleBatchExecutable, InternalLocalRunner.SingleCommandExecutable -
Constructor Summary
ConstructorsConstructorDescriptionPersistableRunner(Long sessionId, KieBase kbase, KieSessionConfiguration conf, Environment env) PersistableRunner(KieBase kbase, KieSessionConfiguration conf, Environment env) -
Method Summary
Modifier and TypeMethodDescriptionvoidaddInterceptor(ChainableRunner interceptor) protected voidaddInterceptor(ChainableRunner interceptor, boolean store) voidvoiddestroy()voiddispose()execute(Executable executable, RequestContext ctx) protected voidinitExistingKnowledgeSession(Long sessionId, KieBase kbase, KieSessionConfiguration conf, PersistenceContext persistenceContext) protected voidinitNewKnowledgeSession(KieBase kbase, KieSessionConfiguration conf) voidstatic booleanisSpringTransactionManager(Class<?> clazz) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.drools.commands.InternalLocalRunner
execute, execute, execute
-
Constructor Details
-
PersistableRunner
-
PersistableRunner
public PersistableRunner(Long sessionId, KieBase kbase, KieSessionConfiguration conf, Environment env)
-
-
Method Details
-
checkEnvironment
-
initNewKnowledgeSession
-
initExistingKnowledgeSession
protected void initExistingKnowledgeSession(Long sessionId, KieBase kbase, KieSessionConfiguration conf, PersistenceContext persistenceContext) -
initTransactionManager
-
isSpringTransactionManager
-
createContext
- Specified by:
createContextin interfaceExecutableRunner<RequestContext>
-
getChainableRunner
-
execute
- Specified by:
executein interfaceExecutableRunner<RequestContext>
-
dispose
public void dispose()- Specified by:
disposein interfaceSingleSessionCommandService
-
destroy
public void destroy()- Specified by:
destroyin interfaceSingleSessionCommandService
-
getSessionId
- Specified by:
getSessionIdin interfaceSingleSessionCommandService
-
getKieSession
- Specified by:
getKieSessionin interfaceSingleSessionCommandService
-
addInterceptor
-
addInterceptor
-