Package com.networknt.registry
Interface RegistryService
-
- All Known Subinterfaces:
Registry
- All Known Implementing Classes:
CommandFailbackRegistry
,DirectRegistry
,FailbackRegistry
public interface RegistryService
Register service to Registry center.- Author:
- fishermen
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
available(URL url)
set service status to available, so clients could use itCollection<URL>
getRegisteredServiceUrls()
void
register(URL url)
register service to registryvoid
unavailable(URL url)
set service status to unavailable, client should not discover services of unavailable statevoid
unregister(URL url)
unregister service to registry
-
-
-
Method Detail
-
register
void register(URL url)
register service to registry- Parameters:
url
- a URL object
-
unregister
void unregister(URL url)
unregister service to registry- Parameters:
url
- a URL object
-
available
void available(URL url)
set service status to available, so clients could use it- Parameters:
url
- service url to be available, null means all services
-
unavailable
void unavailable(URL url)
set service status to unavailable, client should not discover services of unavailable state- Parameters:
url
- service url to be unavailable, null means all services
-
getRegisteredServiceUrls
Collection<URL> getRegisteredServiceUrls()
-
-