public static final class RegistryEntry.Builder
extends Object
Modifier and Type | Method and Description |
---|---|
RegistryEntry |
build()
Builds a registry entry.
|
RegistryEntry.Builder |
clear()
Clears this builder.
|
RegistryEntry.Builder |
copyFrom(RegistryEntry registryEntry)
Copies the values from a registry entry.
|
RegistryEntry.Builder |
setBinding(Optional<String> binding)
Sets the binding.
|
RegistryEntry.Builder |
setDefaultName(String defaultName)
Sets the default name.
|
RegistryEntry.Builder |
setDefaultPrefix(String defaultPrefix)
Sets the default prefix.
|
RegistryEntry.Builder |
setDefaultRegistryAddress(Optional<InetAddress> defaultRegistryAddress)
Sets the default registry address.
|
RegistryEntry.Builder |
setDefaultRegistryPort(int defaultRegistryPort)
Sets the default registry port.
|
RegistryEntry.Builder |
setName(Optional<String> name)
Sets the name.
|
RegistryEntry.Builder |
setServer(String server)
Sets the server connection specification.
|
RegistryEntry.Builder |
setServerURI(URI serverURI)
Sets the server URI.
|
@Nullable @CheckReturnValue public RegistryEntry build()
@Nonnull public RegistryEntry.Builder clear()
@Nonnull public RegistryEntry.Builder copyFrom(@Nonnull RegistryEntry registryEntry)
registryEntry
- The registry entry.@Nonnull public RegistryEntry.Builder setBinding(@Nonnull Optional<String> binding)
binding
- The binding.@Nonnull public RegistryEntry.Builder setDefaultName(@Nonnull String defaultName)
defaultName
- The default name.@Nonnull public RegistryEntry.Builder setDefaultPrefix(@Nonnull String defaultPrefix)
defaultPrefix
- The default prefix.@Nonnull public RegistryEntry.Builder setDefaultRegistryAddress(@Nonnull Optional<InetAddress> defaultRegistryAddress)
defaultRegistryAddress
- The default registry address.@Nonnull public RegistryEntry.Builder setDefaultRegistryPort(int defaultRegistryPort)
defaultRegistryPort
- The default registry port.@Nonnull public RegistryEntry.Builder setName(@Nonnull Optional<String> name)
name
- The name.@Nonnull public RegistryEntry.Builder setServer(@Nonnull String server) throws URISyntaxException
server
- The server connection specification.URISyntaxException
- On bad connection specification.@Nonnull public RegistryEntry.Builder setServerURI(@Nonnull URI serverURI)
serverURI
- The server URI.Copyright © 2003-2019 Serge Brisson. All Rights Reserved.