Interface SwitchConnectionProvider

All Superinterfaces:
DeserializerExtensionProvider, SerializerExtensionProvider
All Known Implementing Classes:
SwitchConnectionProviderImpl

public interface SwitchConnectionProvider extends SerializerExtensionProvider, DeserializerExtensionProvider
Provides handling for a switch connection.
Author:
mirehak, michal.polkorab
  • Method Details

    • getConfiguration

      ConnectionConfiguration getConfiguration()
      Returns the connection configuration.
      Returns:
      configuration [protocol, port, address and supported features]
    • startup

      com.google.common.util.concurrent.ListenableFuture<Void> startup(SwitchConnectionHandler connectionHandler)
      Start listening to switches using specified SwitchConnectionHandler.
      Parameters:
      connectionHandler - instance being informed when new switch connects
      Returns:
      future completing when the channel has been resolved
    • shutdown

      com.google.common.util.concurrent.ListenableFuture<Void> shutdown()
      Stop listening to switches.
      Returns:
      future completing when all channels are down