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 null
topicId
- the topic id, not null
collaborationEngine
- the Collaboration Engine instance, not null
protected void openTopicConnection(ConnectionContext context, SerializableFunction<TopicConnection,Registration> connectionActivationCallback)
context
- the connection context, not null
connectionActivationCallback
- the callback to be executed when a connection is activated,
not null
public void setActivationHandler(AbstractCollaborationManager.ActivationHandler handler)
handler
- the handler, null
to remove an existing handlerprotected CollaborationEngine getCollaborationEngine()
CollaborationEngine
of this manager.CollaborationEngine
, not null
public UserInfo getLocalUser()
null
public String getTopicId()
null
public void close()
ComponentConnectionContext
when
the component is detached.Copyright © 2024. All rights reserved.