Package com.networknt.registry
Interface RegistryService
-
- All Known Subinterfaces:
Registry
- All Known Implementing Classes:
CommandFailbackRegistry,DirectRegistry,FailbackRegistry
public interface RegistryServiceRegister service to Registry center.- Author:
- fishermen
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidavailable(URL url)set service status to available, so clients could use itCollection<URL>getRegisteredServiceUrls()voidregister(URL url)register service to registryvoidunavailable(URL url)set service status to unavailable, client should not discover services of unavailable statevoidunregister(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()
-
-