public class TopicConnectionRegistration extends Object implements Registration
CollaborationEngine.openTopicConnection(ConnectionContext, String,
UserInfo, SerializableFunction)
,
Serialized FormModifier and Type | Class and Description |
---|---|
static interface |
TopicConnectionRegistration.ConnectionFailedAction
An action for handling a failed topic connection.
|
static class |
TopicConnectionRegistration.ConnectionFailedEvent
An event that is fired when the topic connection fails.
|
Modifier and Type | Method and Description |
---|---|
void |
onConnectionFailed(TopicConnectionRegistration.ConnectionFailedAction connectionFailedAction)
Adds an action to be executed if the topic connection fails.
|
void |
remove()
Closes the topic connection.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
addAndRemove, combine, once
public void remove()
remove
in interface Registration
Registration.once(Command)
public void onConnectionFailed(TopicConnectionRegistration.ConnectionFailedAction connectionFailedAction)
If the connection has already failed when calling this method, the action runs immediately.
The action is executed through
ActionDispatcher.dispatchAction(Command)
of the connection
context that was used to open the connection.
connectionFailedAction
- the action to handle topic connection failure, not
null
Copyright © 2022. All rights reserved.