Class ProviderRuntimeConfiguration.Settings.Builder
java.lang.Object
org.cloudburstmc.netty.signaling.provider.ProviderRuntimeConfiguration.Settings.Builder
- Enclosing class:
- ProviderRuntimeConfiguration.Settings
-
Method Summary
Modifier and TypeMethodDescriptionadvertiseAddresses(List<String> advertiseAddresses) assistedJoins(boolean assistedJoins) bedrockProtocols(ProviderClient.BedrockProtocols bedrockProtocols) build()connectionChecks(boolean connectionChecks) deregisterOnShutdown(boolean deregisterOnShutdown) gameOutcomes(boolean gameOutcomes) location(ProviderClient.Location location) proxyProtocolRelays(org.cloudburstmc.netty.util.nethernet.IpRangeSet proxyProtocolRelays) stunDiscovery(boolean stunDiscovery)
-
Method Details
-
token
- Parameters:
token- A bearer token, afile:path to one, or empty to register anonymously
-
advertiseAddresses
public ProviderRuntimeConfiguration.Settings.Builder advertiseAddresses(List<String> advertiseAddresses) - Parameters:
advertiseAddresses- Reachable endpoints asAdvertisedAddressesreads them, one without a port on the UDP port, empty to derive them. Loopback ones are left out with a warning, unless a provider on this machine takes them
-
label
- Parameters:
label- The instance's initial name at the provider, empty for the host name
-
connectionChecks
- Parameters:
connectionChecks- Whether the provider may check reachability from its regions, through diagnostic admission
-
stunDiscovery
- Parameters:
stunDiscovery- Whether to find and maintain public addresses through the provider's STUN servers when none are advertised
-
assistedJoins
- Parameters:
assistedJoins- Whether the provider may help players connect over its WebSocket, which this then uses for every operation
-
deregisterOnShutdown
public ProviderRuntimeConfiguration.Settings.Builder deregisterOnShutdown(boolean deregisterOnShutdown) - Parameters:
deregisterOnShutdown- Whether to end the registration on shutdown, for hosts whose state directory does not persist
-
gameOutcomes
- See Also:
-
ProviderClient.Configuration.Builder.gameOutcomes
-
location
- See Also:
-
ProviderClient.Configuration.Builder.location
-
bedrockProtocols
public ProviderRuntimeConfiguration.Settings.Builder bedrockProtocols(ProviderClient.BedrockProtocols bedrockProtocols) - See Also:
-
ProviderClient.Configuration.Builder.bedrockProtocols
-
proxyProtocolRelays
public ProviderRuntimeConfiguration.Settings.Builder proxyProtocolRelays(org.cloudburstmc.netty.util.nethernet.IpRangeSet proxyProtocolRelays) - Parameters:
proxyProtocolRelays- Relays in front of the gameplay port whose PROXY protocol v2 header gives the client's address, empty for none. While set, only the advertised addresses are offered, and assisted joins and STUN discovery are off, since they contact clients directly and publish this host's own address
-
build
-