public static final class PubSubUdpUadpConnectionConf.Builder extends Object
PubSubUdpUadpConnectionConf.| Modifier and Type | Field and Description |
|---|---|
protected InetSocketAddress |
discoveryNetworkAddress |
protected Map<SocketOption<?>,Object> |
discoverySocketOptions |
protected Boolean |
enabled |
protected String |
name |
protected InetSocketAddress |
networkAddress |
protected PublisherId |
publisherId |
protected Map<String,PubSubUdpUadpReaderGroupConf> |
readerGroups |
protected Map<SocketOption<?>,Object> |
socketOptions |
protected Map<String,PubSubUdpUadpWriterGroupConf> |
writerGroups |
| Modifier | Constructor and Description |
|---|---|
protected |
Builder() |
protected String name
protected PublisherId publisherId
protected Boolean enabled
protected InetSocketAddress discoveryNetworkAddress
protected Map<SocketOption<?>,Object> discoverySocketOptions
protected InetSocketAddress networkAddress
protected Map<SocketOption<?>,Object> socketOptions
protected Map<String,PubSubUdpUadpReaderGroupConf> readerGroups
protected Map<String,PubSubUdpUadpWriterGroupConf> writerGroups
public PubSubUdpUadpConnectionConf.Builder addOrReplaceGroup(PubSubGroupConf value)
PubSubConnectionConf.BuilderPubSubTransportProfile implementation as this connection (e.g. UDP-UADP WriterGroup
for UDP-UADP Connection), otherwise throws IllegalArgumentException. Replaces any
existing Group with the same name as the given one.public final PubSubTransportProfile getTransportProfile()
PubSubConnectionConf.Builderpublic PubSubUdpUadpConnectionConf.Builder setNetworkInterface(NetworkInterface networkInterface)
#putSocketOptions(StandardSocketOptions.IP_MULTICAST_IF, networkInterface).public PubSubUdpUadpConnectionConf.Builder setNetworkInterface(String interfaceName)
setNetworkInterface(NetworkInterface), throws
IllegalArgumentException if it cannot be resolved.public PubSubConfSpecification specification()
PubSubConf.Builderspecification in interface PubSubConf.Builder<PubSubUdpUadpConnectionConf.Builder>public String getName()
public PublisherId getPublisherId()
public Boolean isEnabled()
public InetSocketAddress getDiscoveryNetworkAddress()
public Map<SocketOption<?>,Object> getDiscoverySocketOptions()
public InetSocketAddress getNetworkAddress()
public Map<SocketOption<?>,Object> getSocketOptions()
public Map<String,PubSubUdpUadpReaderGroupConf> getReaderGroups()
public Map<String,PubSubUdpUadpWriterGroupConf> getWriterGroups()
public PubSubUdpUadpConnectionConf.Builder setName(String name)
PubSubUdpUadpConnectionConf.getName(). Returns itself for method chaining.setName in interface PubSubNamedConf.Builder<PubSubUdpUadpConnectionConf.Builder>public PubSubUdpUadpConnectionConf.Builder setPublisherId(PublisherId publisherId)
PubSubUdpUadpConnectionConf.getPublisherId(). Returns itself for method chaining.setPublisherId in interface PubSubConnectionConf.Builder<PubSubUdpUadpConnectionConf.Builder>public PubSubUdpUadpConnectionConf.Builder setEnabled(Boolean enabled)
PubSubUdpUadpConnectionConf#getEnabled(). Returns itself for method chaining.setEnabled in interface PubSubConnectionConf.Builder<PubSubUdpUadpConnectionConf.Builder>public PubSubUdpUadpConnectionConf.Builder setDiscoveryNetworkAddress(InetSocketAddress discoveryNetworkAddress)
PubSubUdpUadpConnectionConf.getDiscoveryNetworkAddress(). Returns itself for method chaining.public <T> PubSubUdpUadpConnectionConf.Builder putDiscoverySocketOptions(SocketOption<T> key, T value)
PubSubUdpUadpConnectionConf.getDiscoverySocketOptions(). Returns itself for method chaining.public PubSubUdpUadpConnectionConf.Builder setNetworkAddress(InetSocketAddress networkAddress)
PubSubUdpUadpConnectionConf.getNetworkAddress(). Returns itself for method chaining.public <T> PubSubUdpUadpConnectionConf.Builder putSocketOptions(SocketOption<T> key, T value)
PubSubUdpUadpConnectionConf.getSocketOptions(). Returns itself for method chaining.public PubSubUdpUadpConnectionConf.Builder addOrReplaceGroup(PubSubUdpUadpReaderGroupConf value)
PubSubUdpUadpReaderGroupConf.getName().public PubSubUdpUadpConnectionConf.Builder addOrReplaceGroup(PubSubUdpUadpWriterGroupConf value)
PubSubUdpUadpWriterGroupConf.getName().public PubSubUdpUadpConnectionConf build()
PubSubUdpUadpConnectionConf with the values given to this builder.build in interface PubSubConf.Builder<PubSubUdpUadpConnectionConf.Builder>build in interface PubSubConnectionConf.Builder<PubSubUdpUadpConnectionConf.Builder>public PubSubUdpUadpConnectionConf.Builder removeGroup(String name)
PubSubConnectionConf.BuilderremoveGroup in interface PubSubConnectionConf.Builder<PubSubUdpUadpConnectionConf.Builder>Copyright © 2026. All rights reserved.