Class TopicConnectionRegistration

java.lang.Object
com.vaadin.collaborationengine.TopicConnectionRegistration
All Implemented Interfaces:
Registration, Serializable

public class TopicConnectionRegistration extends Object implements Registration
A registration for configuring or removing a topic connection that is opened with Collaboration Engine.
Since:
3.0
Author:
Vaadin Ltd
See Also:
  • Method Details

    • remove

      public void remove()
      Closes the topic connection. NO-OP if the connection has failed.
      Specified by:
      remove in interface Registration
      See Also:
    • onConnectionFailed

      public void onConnectionFailed(TopicConnectionRegistration.ConnectionFailedAction connectionFailedAction)
      Adds an action to be executed if the topic connection fails. The connection can fail in production mode, if your Collaboration Engine license has expired, or if the number of unique monthly end users has exceeded the quota in your license.

      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.

      Parameters:
      connectionFailedAction - the action to handle topic connection failure, not null