Class UdsTransportBindingFactory
java.lang.Object
io.helidon.webserver.UdsTransportBindingFactory
- All Implemented Interfaces:
NamedService, TransportBindingFactory
Unix domain socket transport binding factory.
-
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.static UdsTransportBindingFactorycreate(UdsTransportConfig config) Create a Unix domain socket transport binding factory.booleanenabled()Whether this binding factory is enabled.booleanrequired()Whether this binding factory is required to become active.type()Type of this implementation, to distinguish instances of same type, with differentNamedService.name().Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface TransportBindingFactory
name
-
Method Details
-
create
Create a Unix domain socket transport binding factory.- Parameters:
config- Unix domain socket transport binding configuration- Returns:
- Unix domain socket transport binding factory
-
type
Description copied from interface:NamedServiceType of this implementation, to distinguish instances of same type, with differentNamedService.name(). Use for exampleConfiguredProvider.configKey()to define the type.- Specified by:
typein interfaceNamedService- Returns:
- type of this service
-
enabled
public boolean enabled()Description copied from interface:TransportBindingFactoryWhether this binding factory is enabled.- Specified by:
enabledin interfaceTransportBindingFactory- Returns:
- whether this binding factory is enabled
-
required
public boolean required()Description copied from interface:TransportBindingFactoryWhether this binding factory is required to become active.- Specified by:
requiredin interfaceTransportBindingFactory- Returns:
- whether this binding factory is required
-
canBind
Description copied from interface:TransportBindingFactoryWhether this binding factory can bind with the current listener configuration.- Specified by:
canBindin interfaceTransportBindingFactory- Parameters:
context- listener binding planning view- Returns:
- whether this binding factory can bind for the listener
-
create
Description copied from interface:TransportBindingFactoryCreate 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.- Specified by:
createin interfaceTransportBindingFactory- Parameters:
context- logical listener context- Returns:
- created transport binding, never
null
-