Interface LiveViewMultiConnection

All Superinterfaces:
AutoCloseable, Closeable, LiveViewConnection

public interface LiveViewMultiConnection extends LiveViewConnection
Interface representing a connection to a pool of servers (retrieved via LiveViewConnectionFactory.getConnection(MultiConnectionConfig, boolean).) Note that while this is a LiveViewConnection, some operations of that interface will fail with an appropriate error code LiveViewExceptionType.NOT_SUPPORTED_IN_MULTISERVER.

For example (but not limited to), attempting to upload new AlertRules or acquiring TablePublishers will fail. Operations such as these should be performed directly against the intended target server using a normal LiveViewConnection.

Since:
2.0
  • Method Details

    • getCurrentConnection

      LiveViewConnectionControl getCurrentConnection()
      LiveViewConnectionControl of the "current" connection, if there is one. The current connection will always have a ConnectionState of CONNECTED. (At least, it did when this method returned.) If no connection is currently connected, this will return null.
      Returns:
      LiveViewConnectionControl of the "current" connection, if there is one.
    • getConnectionControls

      List<? extends LiveViewConnectionControl> getConnectionControls()
      This list will have a one-for-one correspondence with the list of ConnectionConfigs or the list of URIs that were used to create this LiveViewMultiConnection.
      Returns:
      All the connections currently under consideration.