public final class EndpointHostSpecs
extends java.lang.Object
HostSpec from a configured endpoint string (parsing an optional :port),
reproducing the legacy SimpleReadWriteSplittingPlugin.createHostSpec.| Modifier and Type | Method and Description |
|---|---|
static HostSpec |
create(@Nullable HostListProviderService hostListProviderService,
java.lang.String endpoint,
HostRole role)
Builds a
HostSpec for the given endpoint. |
public static HostSpec create(@Nullable HostListProviderService hostListProviderService, java.lang.String endpoint, HostRole role)
HostSpec for the given endpoint.hostListProviderService - the host list provider service, established by
initHostProvider; must not be nullendpoint - the configured endpoint, optionally including :portrole - the role to assign to the resulting hostjava.lang.IllegalStateException - if the host list provider service has not been established yet