Class AbstractKieSessionsPool

  • All Implemented Interfaces:
    org.kie.api.runtime.KieSessionsPool
    Direct Known Subclasses:
    KieSessionsPoolImpl

    public abstract class AbstractKieSessionsPool
    extends java.lang.Object
    implements org.kie.api.runtime.KieSessionsPool
    • Field Summary

      Fields 
      Modifier and Type Field Description
      protected org.kie.api.runtime.Environment environment  
      protected int initialSize  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      protected AbstractKieSessionsPool​(int initialSize)  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      protected abstract StatefulSessionPool createStatefulSessionPool​(java.lang.String kSessionName, org.kie.api.runtime.KieSessionConfiguration conf, boolean stateless)  
      protected abstract java.lang.String getKey​(java.lang.String kSessionName, org.kie.api.runtime.KieSessionConfiguration conf, boolean stateless)  
      protected StatefulSessionPool getPool​(java.lang.String kSessionName, org.kie.api.runtime.KieSessionConfiguration conf, boolean stateless)  
      protected StatefulSessionPool getPool​(org.kie.api.runtime.KieSessionConfiguration conf, boolean stateless)  
      void shutdown()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.kie.api.runtime.KieSessionsPool

        newKieSession, newKieSession, newStatelessKieSession, newStatelessKieSession
    • Field Detail

      • initialSize

        protected final int initialSize
      • environment

        protected final org.kie.api.runtime.Environment environment
    • Constructor Detail

      • AbstractKieSessionsPool

        protected AbstractKieSessionsPool​(int initialSize)
    • Method Detail

      • shutdown

        public void shutdown()
        Specified by:
        shutdown in interface org.kie.api.runtime.KieSessionsPool
      • getPool

        protected StatefulSessionPool getPool​(org.kie.api.runtime.KieSessionConfiguration conf,
                                              boolean stateless)
      • getPool

        protected StatefulSessionPool getPool​(java.lang.String kSessionName,
                                              org.kie.api.runtime.KieSessionConfiguration conf,
                                              boolean stateless)
      • createStatefulSessionPool

        protected abstract StatefulSessionPool createStatefulSessionPool​(java.lang.String kSessionName,
                                                                         org.kie.api.runtime.KieSessionConfiguration conf,
                                                                         boolean stateless)
      • getKey

        protected abstract java.lang.String getKey​(java.lang.String kSessionName,
                                                   org.kie.api.runtime.KieSessionConfiguration conf,
                                                   boolean stateless)