UnresolvedAddress- The type of address before resolution.
ResolvedAddress- The type of address after resolution.
E- Type of
ServiceDiscovererEvents published from
public interface ServiceDiscoverer<UnresolvedAddress,ResolvedAddress,E extends ServiceDiscovererEvent<ResolvedAddress>> extends ListenableAsyncCloseable
discover(Object)is called that the service discovery system will push data updates or implementations of this interface will poll for data updates. Changes in the available hosts will be communicated via the resulting
|Modifier and Type||Method and Description|
Subscribe to the service discovery system for changes in the available
Publisher<java.util.Collection<E>> discover(UnresolvedAddress address)
In general a call to this method will continue to discover changes related to
address until the
corresponding to the return value is cancelled via
Cancellable.cancel() or there are no more changes to
address- the service address to discover. Examples of what this address maybe are:
Publisherthat represents a stream of events from the service discovery system.