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
Constructors -
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, waitMethods 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:
findServiceInstanceByin interfaceRegistryClient- Parameters:
serviceName- ignoredinstanceId- ignored- Returns:
- empty Optional
-
findAllServiceInstancesBy
Always returns an empty, unmodifiable list.- Specified by:
findAllServiceInstancesByin interfaceRegistryClient- Parameters:
query- ignored- Returns:
- empty unmodifiable list
-
retrieveAllRegisteredInstances
Always returns an empty, unmodifiable list.- Specified by:
retrieveAllRegisteredInstancesin interfaceRegistryClient- Returns:
- empty unmodifiable list
-