Interface Http2SubProtocolProvider<T extends ProtocolConfig>

Type Parameters:
T - type of the protocol configuration used by the provider
All Known Implementing Classes:
GrpcProtocolProvider

public interface Http2SubProtocolProvider<T extends ProtocolConfig>
ServiceLoader provider interface for HTTP/2 sub-protocols.
  • Method Details

    • protocolType

      String protocolType()
      Provider's type, also expected as the configuration node name.
      Returns:
      type of this provider, such as grpc
    • protocolConfigType

      Class<T> protocolConfigType()
      Type of supported configuration.
      Returns:
      protocol config type
    • create

      Http2SubProtocolSelector create(T config, ProtocolConfigs configs)
      Creates an instance of HTTP/2 sub-protocol selector.
      Parameters:
      config - configuration of this protocol
      configs - configuration for possible nested protocols
      Returns:
      new HTTP/2 sub-protocol selector