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
Implementation for the service managing the acquisition/release of
CoreSession instances.- Since:
- 8.4
-
Field Summary
Fields inherited from class org.nuxeo.runtime.model.DefaultComponent
lastModified, name -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateCoreSession(String repositoryName, NuxeoPrincipal principal) Instantiates aCoreSession.intGets 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, unregisterExtensionMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.nuxeo.runtime.model.Component
getApplicationStartedOrder
-
Constructor Details
-
CoreSessionServiceImpl
public CoreSessionServiceImpl()
-
-
Method Details
-
createCoreSession
Description copied from interface:CoreSessionServiceInstantiates aCoreSession.- Specified by:
createCoreSessionin interfaceCoreSessionService- Parameters:
repositoryName- the repository nameprincipal- the principal- Returns:
- a
CloseableCoreSession
-
releaseCoreSession
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
-