Schnittstelle CDORemoteTopic
- Alle Superschnittstellen:
Comparable<CDORemoteTopic>,org.eclipse.net4j.util.container.IContainer<CDORemoteSession>,org.eclipse.net4j.util.event.INotifier
- Alle bekannten Unterschnittstellen:
InternalCDORemoteTopic
public interface CDORemoteTopic
extends org.eclipse.net4j.util.container.IContainer<CDORemoteSession>, Comparable<CDORemoteTopic>
A topic to that the
local session and
remote sessions can subscribe in order to receive events
about their participation and the messages
that they send to the topic.
Use the CDORemoteSessionManager.subscribeTopic()
method to subscribe to a topic and the CDORemoteTopic.unsubscribe() method
to unsubscribe from it.
Use the CDORemoteTopic.sendMessage() method
to send a message to all subscribed remote sessions.
This fires the following events to registered listeners:
-
IContainerEventwithCDORemoteSessionas generic type argument to reflect subscribed or unsubscribed remote sessions. -
CDORemoteSessionEvent.MessageReceivedto deliver custom datasentfrom other sessions.
- Seit:
- 4.17
- 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
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 TypMethodeBeschreibunggetID()Returns theidthat identifies this topic.Returns the remote session manager that manages this remote topic.Returns an array of theremote sessionsthat participate in this topic.booleansendMessage(CDORemoteSessionMessage message) Sends the givenmessageto all subscribedremote sessions.voidUnsubscribes from this topic.Von Schnittstelle geerbte Methoden java.lang.Comparable
compareToVon 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
-
getManager
CDORemoteSessionManager getManager()Returns the remote session manager that manages this remote topic. -
getID
String getID()Returns theidthat identifies this topic. -
getRemoteSessions
CDORemoteSession[] getRemoteSessions()Returns an array of theremote sessionsthat participate in this topic. -
sendMessage
Sends the givenmessageto all subscribedremote sessions.- 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!
-
isSubscribed
boolean isSubscribed() -
unsubscribe
void unsubscribe()Unsubscribes from this topic. All further calls toisSubscribed()will returnfalse.
-