Schnittstelle CDORemoteSessionManager
- Alle Superschnittstellen:
org.eclipse.net4j.util.container.IContainer<CDORemoteSession>,org.eclipse.net4j.util.event.INotifier
- Alle bekannten Unterschnittstellen:
InternalCDORemoteSessionManager
public interface CDORemoteSessionManager
extends org.eclipse.net4j.util.container.IContainer<CDORemoteSession>
Provides collaborative access to the
remote sessions that are connected to the same
repository as the local session. A CDORemoteSessionManager can be subscribed or
unsubscribed to changes in the set of remote sessions. It is subscribed if at least one is true:
- At least one
listeneris registered with this remote session manager. - At least one
topicis subscribed with this remote session manager. Force subscriptionistrue.
events to
registered listeners:
-
IContainerEventwithCDORemoteSessionas generic type argument to reflect opened or closed remote sessions. -
CDORemoteSessionEvent.SubscriptionChangedto reflect the ability of the remote session to receive and possibly handle remote messages from other sessions. -
CDORemoteSessionEvent.MessageReceivedto deliver custom datasentfrom other sessions.
- Seit:
- 2.0
- Autor:
- 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.
-
Verschachtelte Klassen - Übersicht
Verschachtelte KlassenModifizierer und TypSchnittstelleBeschreibungstatic classA default adapter for all kinds ofremote sessionrelated events.static interfaceAneventthat is fired by aremote session managerafter thesubscription modeof thelocal sessionchanged.Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen org.eclipse.net4j.util.container.IContainer
org.eclipse.net4j.util.container.IContainer.Modifiable<E>, org.eclipse.net4j.util.container.IContainer.Persistable<E>, org.eclipse.net4j.util.container.IContainer.Persistence<E>Von Schnittstelle geerbte verschachtelte Klassen/Schnittstellen org.eclipse.net4j.util.event.INotifier
org.eclipse.net4j.util.event.INotifier.INotifier2 -
Methodenübersicht
Modifizierer und TypMethodeBeschreibungReturns thelocal sessionthis CDORemoteSessionManager belongs to.Returns the set ofremote sessionsthat are connected to the same repository as thelocal session.Returns an array of the currently subscribedtopics.booleanReturnstrueif this CDORemoteSessionManager shall be subscribed to changes in the set of remote sessions and deliverscustom data eventseven if nolisteneris registered and notopicis subscribed,falseotherwise.booleanReturnstrueif this CDORemoteSessionManager is subscribed to changes in the set of remote sessions and deliverscustom data events,falseotherwise.sendMessage(CDORemoteSessionMessage message, Collection<CDORemoteSession> recipients) Same assendMessage(CDORemoteSessionMessage, CDORemoteSession...)but with a recipientscollection.sendMessage(CDORemoteSessionMessage message, CDORemoteSession... recipients) Sends a multicast message to the subscribed recipients.voidsetForceSubscription(boolean forceSubscription) Enables or disables subscription to changes in the set of remote sessions even if nolisteneris registered and notopicis subscribed.subscribeTopic(String id) Subscribes to the topic identified by the givenid.Von Schnittstelle geerbte Methoden org.eclipse.net4j.util.container.IContainer
getElements, isEmptyVon Schnittstelle geerbte Methoden org.eclipse.net4j.util.event.INotifier
addListener, getListeners, hasListeners, removeListener
-
Methodendetails
-
getLocalSession
CDOSession getLocalSession()Returns thelocal sessionthis CDORemoteSessionManager belongs to. -
getRemoteSessions
CDORemoteSession[] getRemoteSessions()Returns the set ofremote sessionsthat are connected to the same repository as thelocal session. If this CDORemoteSessionManager itself issubscribedthe result is returned from a local cache for remote sessions, otherwise it is requested from the server each time this method is called. -
isSubscribed
boolean isSubscribed()Returnstrueif this CDORemoteSessionManager is subscribed to changes in the set of remote sessions and deliverscustom data events,falseotherwise. It is subscribed if at least one is true:- At least one
listeneris registered with this remote session manager. - At least one
topicis subscribed with this remote session manager. Force subscriptionistrue.
- Siehe auch:
- At least one
-
isForceSubscription
boolean isForceSubscription()Returnstrueif this CDORemoteSessionManager shall be subscribed to changes in the set of remote sessions and deliverscustom data eventseven if nolisteneris registered and notopicis subscribed,falseotherwise.- Siehe auch:
-
setForceSubscription
void setForceSubscription(boolean forceSubscription) Enables or disables subscription to changes in the set of remote sessions even if nolisteneris registered and notopicis subscribed.- Siehe auch:
-
sendMessage
Sends a multicast message to the subscribed recipients.- Gibt zurück:
- The set of
recipientsthat the message has been forwarded to by the server. Note: No assumption must be made on whether a recipient session received the message and was able to handle it adequately! - Seit:
- 3.0
-
sendMessage
Set<CDORemoteSession> sendMessage(CDORemoteSessionMessage message, Collection<CDORemoteSession> recipients) Same assendMessage(CDORemoteSessionMessage, CDORemoteSession...)but with a recipientscollection.- Seit:
- 3.0
-
subscribeTopic
Subscribes to the topic identified by the givenid.- Gibt zurück:
- The subscribed
topic. - Seit:
- 4.17
-
getSubscribedTopic
- Seit:
- 4.19
-
getSubscribedTopics
CDORemoteTopic[] getSubscribedTopics()Returns an array of the currently subscribedtopics.- Seit:
- 4.17
-