public class InMemorySessionFactory extends Object implements org.kie.internal.runtime.manager.SessionFactory
RuntimeManager close. For that, the more permanent store
JPASessionFactory should be used.JPASessionFactory| Constructor and Description |
|---|
InMemorySessionFactory(org.kie.api.runtime.manager.RuntimeEnvironment environment) |
| Modifier and Type | Method and Description |
|---|---|
void |
close() |
org.kie.api.runtime.KieSession |
findKieSessionById(Long sessionId) |
protected Map<Long,org.kie.api.runtime.KieSession> |
getSessions() |
org.kie.api.runtime.KieSession |
newKieSession() |
void |
onDispose(Long sessionId) |
public InMemorySessionFactory(org.kie.api.runtime.manager.RuntimeEnvironment environment)
public org.kie.api.runtime.KieSession newKieSession()
newKieSession in interface org.kie.internal.runtime.manager.SessionFactorypublic org.kie.api.runtime.KieSession findKieSessionById(Long sessionId)
findKieSessionById in interface org.kie.internal.runtime.manager.SessionFactorypublic void close()
close in interface org.kie.internal.runtime.manager.SessionFactorypublic void onDispose(Long sessionId)
onDispose in interface org.kie.internal.runtime.manager.SessionFactoryCopyright © 2001–2017 JBoss by Red Hat. All rights reserved.