Class RepositoryService.SessionFactory

  • All Implemented Interfaces:
    org.apache.commons.pool2.KeyedPooledObjectFactory<String,​Session>
    Enclosing class:
    RepositoryService

    protected class RepositoryService.SessionFactory
    extends org.apache.commons.pool2.BaseKeyedPooledObjectFactory<String,​Session>
    Since:
    11.1
    • Constructor Detail

      • SessionFactory

        protected SessionFactory()
    • Method Detail

      • wrap

        public org.apache.commons.pool2.PooledObject<Session> wrap​(Session session)
        Specified by:
        wrap in class org.apache.commons.pool2.BaseKeyedPooledObjectFactory<String,​Session>
      • destroyObject

        public void destroyObject​(String repositoryName,
                                  org.apache.commons.pool2.PooledObject<Session> p)
                           throws Exception
        Specified by:
        destroyObject in interface org.apache.commons.pool2.KeyedPooledObjectFactory<String,​Session>
        Overrides:
        destroyObject in class org.apache.commons.pool2.BaseKeyedPooledObjectFactory<String,​Session>
        Throws:
        Exception