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.SessionFactory
public org.kie.api.runtime.KieSession findKieSessionById(Long sessionId)
findKieSessionById
in interface org.kie.internal.runtime.manager.SessionFactory
public void close()
close
in interface org.kie.internal.runtime.manager.SessionFactory
public void onDispose(Long sessionId)
onDispose
in interface org.kie.internal.runtime.manager.SessionFactory
Copyright © 2001–2018 JBoss by Red Hat. All rights reserved.