Package org.lable.oss.uniqueid.etcd
Class RegistryBasedResourceClaim
- java.lang.Object
-
- org.lable.oss.uniqueid.etcd.RegistryBasedResourceClaim
-
public class RegistryBasedResourceClaim extends Object
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RegistryBasedResourceClaimclaim(Supplier<io.etcd.jetcd.Client> connectToEtcd, int maxGeneratorCount, String registryEntry)voidclose()intgetClusterId()intgetGeneratorId()StringgetRegistryEntry()
-
-
-
Method Detail
-
claim
public static RegistryBasedResourceClaim claim(Supplier<io.etcd.jetcd.Client> connectToEtcd, int maxGeneratorCount, String registryEntry) throws IOException
- Throws:
IOException
-
getClusterId
public int getClusterId()
-
getGeneratorId
public int getGeneratorId()
-
close
public void close()
-
getRegistryEntry
public String getRegistryEntry()
-
-