public abstract class OutboundSocketBindingService extends Object implements org.jboss.msc.service.Service<OutboundSocketBinding>
| Modifier and Type | Field and Description |
|---|---|
protected boolean |
fixedSourcePort |
protected String |
outboundSocketName |
protected Supplier<SocketBindingManager> |
socketBindingManagerSupplier |
protected Supplier<NetworkInterfaceBinding> |
sourceInterfaceSupplier |
protected Integer |
sourcePort |
| Constructor and Description |
|---|
OutboundSocketBindingService(Consumer<OutboundSocketBinding> outboundSocketBindingConsumer,
Supplier<SocketBindingManager> socketBindingManagerSupplier,
Supplier<NetworkInterfaceBinding> sourceInterfaceSupplier,
String name,
Integer sourcePort,
boolean fixedSourcePort) |
| Modifier and Type | Method and Description |
|---|---|
protected abstract OutboundSocketBinding |
createOutboundSocketBinding()
Create and return the
OutboundSocketBinding for this outbound socket binding service |
OutboundSocketBinding |
getValue() |
void |
start(org.jboss.msc.service.StartContext context) |
void |
stop(org.jboss.msc.service.StopContext context) |
protected final String outboundSocketName
protected final Integer sourcePort
protected final Supplier<SocketBindingManager> socketBindingManagerSupplier
protected final Supplier<NetworkInterfaceBinding> sourceInterfaceSupplier
protected final boolean fixedSourcePort
public OutboundSocketBindingService(Consumer<OutboundSocketBinding> outboundSocketBindingConsumer, Supplier<SocketBindingManager> socketBindingManagerSupplier, Supplier<NetworkInterfaceBinding> sourceInterfaceSupplier, String name, Integer sourcePort, boolean fixedSourcePort)
public void start(org.jboss.msc.service.StartContext context)
start in interface org.jboss.msc.Servicepublic void stop(org.jboss.msc.service.StopContext context)
stop in interface org.jboss.msc.Servicepublic OutboundSocketBinding getValue() throws IllegalStateException, IllegalArgumentException
getValue in interface org.jboss.msc.value.Value<OutboundSocketBinding>IllegalStateExceptionIllegalArgumentExceptionprotected abstract OutboundSocketBinding createOutboundSocketBinding()
OutboundSocketBinding for this outbound socket binding serviceCopyright © 2020 JBoss by Red Hat. All rights reserved.