public class TopicConnectionRegistration extends Object implements Registration
CollaborationEngine.openTopicConnection(ConnectionContext, String,
UserInfo, SerializableFunction),
Serialized Form| Modifier 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, waitaddAndRemove, combine, oncepublic void remove()
remove in interface Registrationpublic void onConnectionFailed(TopicConnectionRegistration.ConnectionFailedAction connectionFailedAction)
If the connection has already failed when calling this method, the action runs immediately.
The action is executed through
ConnectionContext.dispatchAction(Command) of the connection
context that was used to open the connection.
connectionFailedAction - the action to handle topic connection failure, not
nullCopyright © 2021. All rights reserved.