public interface BlockingDiscoveryProvider
toDiscoveryProvider(Executor) method must be used to convert providers of
this type to a type which can be used in a Discovery instance.| Modifier and Type | Method and Description |
|---|---|
void |
discover(ServiceType serviceType,
FilterSpec filterSpec,
DiscoveryResult result)
Attempt to discover implementations of a service synchronously.
|
default DiscoveryProvider |
toDiscoveryProvider(Executor executor)
Convert this provider to a non-blocking provider which uses the given thread pool to dispatch discovery
requests.
|
void discover(ServiceType serviceType, FilterSpec filterSpec, DiscoveryResult result) throws InterruptedException
DiscoveryResult.addMatch(ServiceURL) method on the result parameter as they are found. The
DiscoveryResult.complete() method may be called when the discovery process is complete or has timed out
or failed for any other reason. If the complete() method is not called, the discovery is assumed to
be complete when the method returns.serviceType - the service type to matchfilterSpec - the service attribute filter expression, or null to return all matchesresult - the discovery resultInterruptedException - if discovery was interrupted for some reasondefault DiscoveryProvider toDiscoveryProvider(Executor executor)
executor - the executor to use for task dispatch (must not be null)null)Copyright © 2017 JBoss by Red Hat. All rights reserved.