public class RegistryBasedGeneratorIdentity extends Object implements GeneratorIdentityHolder
close() (where a new connection to Etcd will be
set up briefly).| Constructor and Description |
|---|
RegistryBasedGeneratorIdentity(String endpoints,
String namespace,
String registryEntry,
Duration acquisitionTimeout,
boolean waitWhenNoResourcesAvailable) |
| Modifier and Type | Method and Description |
|---|---|
static RegistryBasedGeneratorIdentity |
basedOn(String endpoints,
String namespace,
String registryEntry) |
static RegistryBasedGeneratorIdentity |
basedOn(String endpoints,
String namespace,
String registryEntry,
Duration acquisitionTimeout,
boolean waitWhenNoResourcesAvailable) |
void |
close() |
int |
getClusterId() |
int |
getGeneratorId() |
String |
getRegistryEntry() |
public static RegistryBasedGeneratorIdentity basedOn(String endpoints, String namespace, String registryEntry) throws IOException
IOExceptionpublic static RegistryBasedGeneratorIdentity basedOn(String endpoints, String namespace, String registryEntry, Duration acquisitionTimeout, boolean waitWhenNoResourcesAvailable) throws IOException
IOExceptionpublic int getClusterId()
throws GeneratorException
getClusterId in interface GeneratorIdentityHolderGeneratorExceptionpublic int getGeneratorId()
throws GeneratorException
getGeneratorId in interface GeneratorIdentityHolderGeneratorExceptionpublic String getRegistryEntry()
public void close()
throws IOException
close in interface Closeableclose in interface AutoCloseableIOExceptionCopyright © 2014–2021 Lable. All rights reserved.