jBPM :: Distribution 6.2.0-SNAPSHOT

org.jbpm.runtime.manager.impl.factory
Class InMemorySessionFactory

java.lang.Object
  extended by org.jbpm.runtime.manager.impl.factory.InMemorySessionFactory
All Implemented Interfaces:
org.kie.internal.runtime.manager.SessionFactory

public class InMemorySessionFactory
extends Object
implements org.kie.internal.runtime.manager.SessionFactory

SessionFactory implementation backed with an in-memory store of used sessions. This does not preserve state between server restarts or even RuntimeManager close. For that, the more permanent store JPASessionFactory should be used.

See Also:
JPASessionFactory

Constructor Summary
InMemorySessionFactory(RuntimeEnvironment environment)
           
 
Method Summary
 void close()
           
 KieSession findKieSessionById(Long sessionId)
           
 KieSession newKieSession()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

InMemorySessionFactory

public InMemorySessionFactory(RuntimeEnvironment environment)
Method Detail

newKieSession

public KieSession newKieSession()
Specified by:
newKieSession in interface org.kie.internal.runtime.manager.SessionFactory

findKieSessionById

public KieSession findKieSessionById(Long sessionId)
Specified by:
findKieSessionById in interface org.kie.internal.runtime.manager.SessionFactory

close

public void close()
Specified by:
close in interface org.kie.internal.runtime.manager.SessionFactory

jBPM :: Distribution 6.2.0-SNAPSHOT

Copyright © 2001-2015 JBoss by Red Hat. All Rights Reserved.