Interface TransportBindingFactory

All Superinterfaces:
NamedService
All Known Implementing Classes:
TcpTransportBindingFactory, UdsTransportBindingFactory

public interface TransportBindingFactory extends NamedService
Factory for a configured transport binding.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    Whether this binding factory can bind with the current listener configuration.
    Create a binding for the transport.
    default boolean
    Whether this binding factory is enabled.
    default String
    The configured provider key is the sole binding identity.
    default boolean
    Whether this binding factory is required to become active.

    Methods inherited from interface NamedService

    type
    Modifier and Type
    Method
    Description
    Type of this implementation, to distinguish instances of same type, with different NamedService.name().
  • Method Details

    • name

      default String name()
      The configured provider key is the sole binding identity.
      Specified by:
      name in interface NamedService
      Returns:
      transport binding type
    • enabled

      default boolean enabled()
      Whether this binding factory is enabled.
      Returns:
      whether this binding factory is enabled
    • required

      default boolean required()
      Whether this binding factory is required to become active.
      Returns:
      whether this binding factory is required
    • canBind

      boolean canBind(BindingPlanContext context)
      Whether this binding factory can bind with the current listener configuration.
      Parameters:
      context - listener binding planning view
      Returns:
      whether this binding factory can bind for the listener
    • create

      Create a binding for the transport.

      This method is called while the listener plans bindings, before listener capability validation has completed. Implementations must not bind sockets, allocate transport runtime resources, or start background work here. Resource allocation belongs to TransportBinding.start(); otherwise a later planning failure would have no lifecycle path to release those resources.

      Parameters:
      context - logical listener context
      Returns:
      created transport binding, never null