public class DynamoDbServiceRegistry extends AbstractServiceRegistry
DynamoDbServiceRegistry
.Constructor and Description |
---|
DynamoDbServiceRegistry() |
Modifier and Type | Method and Description |
---|---|
boolean |
delete(RegisteredService registeredService)
Remove the service from the data store.
|
RegisteredService |
findServiceById(long id)
Find service by the numeric id.
|
RegisteredService |
findServiceById(java.lang.String id)
Find service by the service id.
|
java.util.List<RegisteredService> |
load()
Retrieve the services from the data store.
|
RegisteredService |
save(RegisteredService registeredService)
Persist the service in the data store.
|
long |
size()
Return number of records held in this service registry.
|
getName, publishEvent
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
findServiceByExactServiceId, findServiceByExactServiceName
public RegisteredService save(RegisteredService registeredService)
ServiceRegistry
registeredService
- the service to persist.public boolean delete(RegisteredService registeredService)
ServiceRegistry
registeredService
- the service to remove.public java.util.List<RegisteredService> load()
ServiceRegistry
public RegisteredService findServiceById(long id)
ServiceRegistry
id
- the idpublic RegisteredService findServiceById(java.lang.String id)
ServiceRegistry
id
- the idpublic long size()
ServiceRegistry