Interface TransportBindingFactory
- All Superinterfaces:
NamedService
- All Known Implementing Classes:
TcpTransportBindingFactory, UdsTransportBindingFactory
Factory for a configured transport binding.
-
Method Summary
Modifier and TypeMethodDescriptionbooleancanBind(BindingPlanContext context) Whether this binding factory can bind with the current listener configuration.create(TransportBindingContext context) Create a binding for the transport.default booleanenabled()Whether this binding factory is enabled.default Stringname()The configured provider key is the sole binding identity.default booleanrequired()Whether this binding factory is required to become active.Methods inherited from interface NamedService
typeModifier and TypeMethodDescriptiontype()Type of this implementation, to distinguish instances of same type, with differentNamedService.name().
-
Method Details
-
name
The configured provider key is the sole binding identity.- Specified by:
namein interfaceNamedService- 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
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
-