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
-
Method Summary
Modifier and TypeMethodDescriptioncreateCoreSession
(String repositoryName, NuxeoPrincipal principal) Instantiates aCoreSession
.int
Gets the number of open sessions.void
releaseCoreSession
(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
getApplicationStartedOrder
-
Constructor Details
-
CoreSessionServiceImpl
public CoreSessionServiceImpl()
-
-
Method Details
-
createCoreSession
Description copied from interface:CoreSessionService
Instantiates aCoreSession
.- Specified by:
createCoreSession
in interfaceCoreSessionService
- Parameters:
repositoryName
- the repository nameprincipal
- the principal- Returns:
- a
CloseableCoreSession
-
releaseCoreSession
Description copied from interface:CoreSessionService
Does nothing.- Specified by:
releaseCoreSession
in interfaceCoreSessionService
- Parameters:
session
- the session to close
-
getNumberOfOpenCoreSessions
public int getNumberOfOpenCoreSessions()Description copied from interface:CoreSessionService
Gets the number of open sessions.- Specified by:
getNumberOfOpenCoreSessions
in interfaceCoreSessionService
-