public abstract class ServiceFinder<T,ServiceRegistryType extends ServiceRegistry<T>> extends Object
| Modifier | Constructor and Description |
|---|---|
protected |
ServiceFinder(ServiceRegistryType serviceRegistry,
ShardSelector<T,ServiceRegistryType> shardSelector,
ServiceNodeSelector<T> nodeSelector) |
| Modifier and Type | Method and Description |
|---|---|
Optional<ServiceNode<T>> |
get(Predicate<T> criteria) |
List<ServiceNode<T>> |
getAll(Predicate<T> criteria) |
void |
start() |
void |
stop() |
protected ServiceFinder(ServiceRegistryType serviceRegistry, ShardSelector<T,ServiceRegistryType> shardSelector, ServiceNodeSelector<T> nodeSelector)
public Optional<ServiceNode<T>> get(Predicate<T> criteria)
public List<ServiceNode<T>> getAll(Predicate<T> criteria)
public void start()
public void stop()
Copyright © 2015–2022. All rights reserved.