public class InMemoryRegistryRepository extends java.lang.Object implements RegistryRepository
RegistryRepository interface.| Modifier and Type | Field and Description |
|---|---|
java.util.concurrent.ConcurrentMap<java.lang.String,Registry> |
registry |
| Constructor and Description |
|---|
InMemoryRegistryRepository() |
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Removes all Registry from the repository.
|
void |
createOrUpdate(Registry registry)
Creates or updates Registry.
|
void |
delete(java.lang.String name)
Deletes a
Registry instance identified by it's name. |
Registry |
get(java.lang.String registryName)
Returns the registry with the specifed name, or null if no such registry exists.
|
java.util.Set<java.lang.String> |
getKnownNames()
Returns the names of all known Registry instances.
|
public final java.util.concurrent.ConcurrentMap<java.lang.String,Registry> registry
public void createOrUpdate(Registry registry)
createOrUpdate in interface RegistryRepositoryregistry - the Registry instance.public void delete(java.lang.String name)
Registry instance identified by it's name.delete in interface RegistryRepositoryname - the name of the deleted registry.public java.util.Set<java.lang.String> getKnownNames()
getKnownNames in interface RegistryRepositorypublic Registry get(java.lang.String registryName)
RegistryRepositoryget in interface RegistryRepositorypublic void clear()
clear in interface RegistryRepository