public interface KieContainerSessionsPool extends KieSessionsPool
Modifier and Type | Method and Description |
---|---|
KieSession |
newKieSession(String kSessionName)
Obtain a
KieSession with the given name from this pool. |
KieSession |
newKieSession(String kSessionName,
KieSessionConfiguration conf)
Obtain a
KieSession with the given name and configuration from this pool. |
StatelessKieSession |
newStatelessKieSession(String kSessionName)
Obtain a
StatelessKieSession with the given name from this pool. |
StatelessKieSession |
newStatelessKieSession(String kSessionName,
KieSessionConfiguration conf)
Obtain a
StatelessKieSession with the given name and configuration from this pool. |
newKieSession, newKieSession, newStatelessKieSession, newStatelessKieSession, shutdown
KieSession newKieSession(String kSessionName)
KieSession
with the given name from this pool.
Calling KieSession.dispose()
on this session when you are done will push it back into the pool.KieSession
RuntimeException
- if the KieContainer doesn't have any KieSession with the given nameKieSession newKieSession(String kSessionName, KieSessionConfiguration conf)
KieSession
with the given name and configuration from this pool.
Calling KieSession.dispose()
on this session when you are done will push it back into the pool.KieSession
RuntimeException
- if the KieContainer doesn't have any KieSession with the given nameStatelessKieSession newStatelessKieSession(String kSessionName)
StatelessKieSession
with the given name from this pool.
Note that, what is pooled here is not StatelessKieSession
but the KieSession
that it internally
wraps, so calling multiple times CommandExecutor.execute(Command)
()} (or one of its overload) will
make this StatelessKieSession
to get a KieSession
from the pool instead of creating a new one.StatelessKieSession
RuntimeException
- if this KieContainer doesn't have any StatelessKieSession with the given nameStatelessKieSession newStatelessKieSession(String kSessionName, KieSessionConfiguration conf)
StatelessKieSession
with the given name and configuration from this pool.
Note that, what is pooled here is not StatelessKieSession
but the KieSession
that it internally
wraps, so calling multiple times CommandExecutor.execute(Command)
()} (or one of its overload) will
make this StatelessKieSession
to get a KieSession
from the pool instead of creating a new one.StatelessKieSession
RuntimeException
- if this KieContainer doesn't have any StatelessKieSession with the given nameCopyright © 2001–2021 JBoss by Red Hat. All rights reserved.