Package org.nuxeo.ecm.core.api
Class CoreSessionServiceImpl
- java.lang.Object
-
- org.nuxeo.runtime.model.DefaultComponent
-
- org.nuxeo.ecm.core.api.CoreSessionServiceImpl
-
- All Implemented Interfaces:
CoreSessionService,Adaptable,Component,Extensible,TimestampedService
public class CoreSessionServiceImpl extends DefaultComponent implements CoreSessionService
Implementation for the service managing the acquisition/release ofCoreSessioninstances.- Since:
- 8.4
-
-
Field Summary
-
Fields inherited from class org.nuxeo.runtime.model.DefaultComponent
lastModified, name
-
-
Constructor Summary
Constructors Constructor Description CoreSessionServiceImpl()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CloseableCoreSessioncreateCoreSession(String repositoryName, NuxeoPrincipal principal)Instantiates aCoreSession.intgetNumberOfOpenCoreSessions()Gets the number of open sessions.voidreleaseCoreSession(CloseableCoreSession session)Does nothing.-
Methods inherited from class org.nuxeo.runtime.model.DefaultComponent
activate, addRuntimeMessage, addRuntimeMessage, deactivate, getAdapter, getDescriptor, getDescriptors, getLastModified, getRegistry, register, registerContribution, registerExtension, setLastModified, setModifiedNow, setName, start, stop, unregister, unregisterContribution, unregisterExtension
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.nuxeo.runtime.model.Component
applicationStarted, getApplicationStartedOrder
-
-
-
-
Method Detail
-
createCoreSession
public CloseableCoreSession createCoreSession(String repositoryName, NuxeoPrincipal principal)
Description copied from interface:CoreSessionServiceInstantiates aCoreSession.- Specified by:
createCoreSessionin interfaceCoreSessionService- Parameters:
repositoryName- the repository nameprincipal- the principal- Returns:
- a
CloseableCoreSession
-
releaseCoreSession
public void releaseCoreSession(CloseableCoreSession session)
Description copied from interface:CoreSessionServiceDoes nothing.- Specified by:
releaseCoreSessionin interfaceCoreSessionService- Parameters:
session- the session to close
-
getNumberOfOpenCoreSessions
public int getNumberOfOpenCoreSessions()
Description copied from interface:CoreSessionServiceGets the number of open sessions.- Specified by:
getNumberOfOpenCoreSessionsin interfaceCoreSessionService
-
-