Package org.eclipse.emf.cdo.session
Interface CDOSessionRegistry
- All Superinterfaces:
org.eclipse.net4j.util.container.IContainer<CDOSessionRegistry.Registration>
,org.eclipse.net4j.util.event.INotifier
public interface CDOSessionRegistry
extends org.eclipse.net4j.util.container.IContainer<CDOSessionRegistry.Registration>
A global registry of all open
sessions
.- Since:
- 4.17
- Author:
- Eike Stepper
- No Implement
- This interface is not intended to be implemented by clients.
- No Extend
- This interface is not intended to be extended by clients.
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic interface
Nested classes/interfaces inherited from interface org.eclipse.net4j.util.container.IContainer
org.eclipse.net4j.util.container.IContainer.Modifiable<E extends Object>, org.eclipse.net4j.util.container.IContainer.Persistable<E extends Object>, org.eclipse.net4j.util.container.IContainer.Persistence<E extends Object>
Nested classes/interfaces inherited from interface org.eclipse.net4j.util.event.INotifier
org.eclipse.net4j.util.event.INotifier.INotifier2
-
Field Summary
Modifier and TypeFieldDescriptionstatic final CDOSessionRegistry
The singleton instance of thesession registry
.static final int
A symbolic constant returned fromgetID(CDOSession)
if the session is not registered. -
Method Summary
Modifier and TypeMethodDescriptionint
getID
(CDOSession session) int[]
getIDs()
getSession
(int id) Returns all registeredsessions
.Methods inherited from interface org.eclipse.net4j.util.container.IContainer
getElements, isEmpty
Methods inherited from interface org.eclipse.net4j.util.event.INotifier
addListener, getListeners, hasListeners, removeListener
-
Field Details
-
INSTANCE
The singleton instance of thesession registry
. -
NOT_REGISTERED
static final int NOT_REGISTEREDA symbolic constant returned fromgetID(CDOSession)
if the session is not registered.- See Also:
-
-
Method Details
-
getIDs
int[] getIDs() -
getSessions
CDOSession[] getSessions()Returns all registeredsessions
. -
getID
-
getSession
-