Interface ServerConnectionSelectorProvider<T extends ProtocolConfig>

Type Parameters:
T - type of the protocol config
All Known Implementing Classes:
Http1ConnectionProvider, Http2ConnectionProvider

public interface ServerConnectionSelectorProvider<T extends ProtocolConfig>
ServiceLoader provider interface for server connection providers. This interface serves as ServerConnectionSelector builder which receives requested configuration nodes from the server configuration when server builder is running.
  • Method Details

    • protocolConfigType

      Class<T> protocolConfigType()
      Type of configuration supported by this connection provider.
      type of configuration used by this provider
    • protocolType

      String protocolType()
      Type of protocol, such as http_1_1.
      type of this protocol, used in configuration
    • create

      ServerConnectionSelector create(String listenerName, T config, ProtocolConfigs configs)
      Creates an instance of server connection selector.
      listenerName - name of the listener this selector will be active on
      config - configuration of this provider
      configs - configuration of all protocols of this socket, to be used for nested protocol support, only providers that do have a configuration available should be created!
      new server connection selector