Package org.kiwiproject.registry.client
Class NoOpRegistryClient
java.lang.Object
org.kiwiproject.registry.client.NoOpRegistryClient
- All Implemented Interfaces:
RegistryClient
A "no-op" implementation of
RegistryClient
.-
Nested Class Summary
Nested classes/interfaces inherited from interface org.kiwiproject.registry.client.RegistryClient
RegistryClient.InstanceQuery
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionAlways returns an empty, unmodifiable list.findServiceInstanceBy
(String serviceName, String instanceId) Always returns an empty Optional.Always returns an empty, unmodifiable list.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.kiwiproject.registry.client.RegistryClient
findAllServiceInstancesBy, findServiceInstanceBy, findServiceInstanceBy
-
Constructor Details
-
NoOpRegistryClient
public NoOpRegistryClient()
-
-
Method Details
-
findServiceInstanceBy
Always returns an empty Optional.- Specified by:
findServiceInstanceBy
in interfaceRegistryClient
- Parameters:
serviceName
- ignoredinstanceId
- ignored- Returns:
- empty Optional
-
findAllServiceInstancesBy
Always returns an empty, unmodifiable list.- Specified by:
findAllServiceInstancesBy
in interfaceRegistryClient
- Parameters:
query
- ignored- Returns:
- empty unmodifiable list
-
retrieveAllRegisteredInstances
Always returns an empty, unmodifiable list.- Specified by:
retrieveAllRegisteredInstances
in interfaceRegistryClient
- Returns:
- empty unmodifiable list
-