Package org.eclipse.emf.spi.cdo
Interface InternalCDORemoteSessionManager
- All Superinterfaces:
CDORemoteSessionManager
,org.eclipse.net4j.util.container.IContainer<CDORemoteSession>
,org.eclipse.net4j.util.lifecycle.IDeactivateable
,org.eclipse.net4j.util.concurrent.IExecutorServiceProvider
,org.eclipse.net4j.util.lifecycle.ILifecycle
,org.eclipse.net4j.util.event.INotifier
public interface InternalCDORemoteSessionManager
extends CDORemoteSessionManager, org.eclipse.net4j.util.lifecycle.ILifecycle, org.eclipse.net4j.util.concurrent.IExecutorServiceProvider
If the meaning of this type isn't clear, there really should be more of a description here...
- Since:
- 2.0
- 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
Nested classes/interfaces inherited from interface org.eclipse.emf.cdo.session.remote.CDORemoteSessionManager
CDORemoteSessionManager.EventAdapter, CDORemoteSessionManager.LocalSubscriptionChangedEvent
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.lifecycle.ILifecycle
org.eclipse.net4j.util.lifecycle.ILifecycle.DeferrableActivation
Nested classes/interfaces inherited from interface org.eclipse.net4j.util.event.INotifier
org.eclipse.net4j.util.event.INotifier.INotifier2
-
Method Summary
Modifier and TypeMethodDescriptioncreateRemoteSession
(int sessionID, String userID, boolean subscribed) Returns thelocal session
this CDORemoteSessionManager belongs to.getRemoteSession
(int sessionID) Returns the set ofremote sessions
that are connected to the same repository as thelocal session
.Returns an array of the currently subscribedtopics
.void
handleRemoteSessionClosed
(int sessionID) void
handleRemoteSessionMessage
(int sessionID, String topicID, CDORemoteSessionMessage message) void
handleRemoteSessionMessage
(int sessionID, CDORemoteSessionMessage message) Deprecated.void
handleRemoteSessionOpened
(int sessionID, String userID) void
handleRemoteSessionSubscribed
(int sessionID, boolean subscribed) Deprecated.As of 4.8 usehandleRemoteSessionSubscribed(int, String, boolean)
.void
handleRemoteSessionSubscribed
(int sessionID, String topicID, boolean subscribed) void
setLocalSession
(InternalCDOSession localSession) subscribeTopic
(String id) Subscribes to the topic identified by the givenid
.void
unsubscribeTopic
(InternalCDORemoteTopic remoteTopic) Methods inherited from interface org.eclipse.emf.cdo.session.remote.CDORemoteSessionManager
isForceSubscription, isSubscribed, sendMessage, sendMessage, setForceSubscription
Methods inherited from interface org.eclipse.net4j.util.container.IContainer
getElements, isEmpty
Methods inherited from interface org.eclipse.net4j.util.concurrent.IExecutorServiceProvider
getExecutorService
Methods inherited from interface org.eclipse.net4j.util.lifecycle.ILifecycle
activate, deactivate, getLifecycleState, isActive
Methods inherited from interface org.eclipse.net4j.util.event.INotifier
addListener, getListeners, hasListeners, removeListener
-
Method Details
-
getLocalSession
InternalCDOSession getLocalSession()Description copied from interface:CDORemoteSessionManager
Returns thelocal session
this CDORemoteSessionManager belongs to.- Specified by:
getLocalSession
in interfaceCDORemoteSessionManager
- Since:
- 3.0
-
setLocalSession
- Since:
- 3.0
-
getRemoteSessions
InternalCDORemoteSession[] getRemoteSessions()Description copied from interface:CDORemoteSessionManager
Returns the set ofremote sessions
that are connected to the same repository as thelocal session
. If this CDORemoteSessionManager itself issubscribed
the result is returned from a local cache for remote sessions, otherwise it is requested from the server each time this method is called.- Specified by:
getRemoteSessions
in interfaceCDORemoteSessionManager
- Since:
- 4.17
-
getRemoteSession
- Since:
- 4.17
-
createRemoteSession
- Since:
- 3.0
-
handleRemoteSessionOpened
-
handleRemoteSessionClosed
void handleRemoteSessionClosed(int sessionID) -
handleRemoteSessionSubscribed
Deprecated.As of 4.8 usehandleRemoteSessionSubscribed(int, String, boolean)
. -
handleRemoteSessionSubscribed
- Since:
- 4.17
-
handleRemoteSessionMessage
Deprecated.- Since:
- 3.0
-
handleRemoteSessionMessage
- Since:
- 4.17
-
subscribeTopic
Description copied from interface:CDORemoteSessionManager
Subscribes to the topic identified by the givenid
.- Specified by:
subscribeTopic
in interfaceCDORemoteSessionManager
- Returns:
- The subscribed
topic
. - Since:
- 4.17
-
unsubscribeTopic
- Since:
- 4.17
-
getSubscribedTopics
InternalCDORemoteTopic[] getSubscribedTopics()Description copied from interface:CDORemoteSessionManager
Returns an array of the currently subscribedtopics
.- Specified by:
getSubscribedTopics
in interfaceCDORemoteSessionManager
- Since:
- 4.17
-
getSubscribedTopic
Description copied from interface:CDORemoteSessionManager
- Specified by:
getSubscribedTopic
in interfaceCDORemoteSessionManager
- Since:
- 4.17
-
handleRemoteSessionMessage(int, String, CDORemoteSessionMessage)
.