public abstract class AbstractCollaborationManager extends Object
| Modifier and Type | Class and Description |
|---|---|
static interface |
AbstractCollaborationManager.ActivationHandler
The callback executed when the manager is activated, i.e.
|
| Modifier | Constructor and Description |
|---|---|
protected |
AbstractCollaborationManager(UserInfo localUser,
String topicId,
CollaborationEngine collaborationEngine)
Constructs a new manager instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Closes the manager connection to the topic.
|
protected CollaborationEngine |
getCollaborationEngine()
Gets the
CollaborationEngine of this manager. |
UserInfo |
getLocalUser()
Gets the local user of this manager.
|
String |
getTopicId()
Gets the topic id of this manager.
|
protected void |
openTopicConnection(ConnectionContext context,
SerializableFunction<TopicConnection,Registration> connectionActivationCallback)
Opens a connection to the topic of this manager using the provided
context and activation callback.
|
void |
setActivationHandler(AbstractCollaborationManager.ActivationHandler handler)
Sets an handler that will be executed when the manager is activated, i.e.
|
protected AbstractCollaborationManager(UserInfo localUser, String topicId, CollaborationEngine collaborationEngine)
localUser - the local user, not nulltopicId - the topic id, not nullcollaborationEngine - the Collaboration Engine instance, not nullprotected void openTopicConnection(ConnectionContext context, SerializableFunction<TopicConnection,Registration> connectionActivationCallback)
context - the connection context, not nullconnectionActivationCallback - the callback to be executed when a connection is activated,
not nullpublic void setActivationHandler(AbstractCollaborationManager.ActivationHandler handler)
handler - the handler, null to remove an existing handlerprotected CollaborationEngine getCollaborationEngine()
CollaborationEngine of this manager.CollaborationEngine, not nullpublic UserInfo getLocalUser()
nullpublic String getTopicId()
nullpublic void close()
ComponentConnectionContext when
the component is detached.Copyright © 2023. All rights reserved.