public final class Discovery extends Object
| Modifier and Type | Method and Description |
|---|---|
static Discovery |
create(DiscoveryProvider... providers)
Create a discovery object with the given providers.
|
static Discovery |
create(DiscoveryProvider provider)
Create a discovery object with the given single provider.
|
ServicesQueue |
discover(ServiceType serviceType,
FilterSpec filterSpec)
Perform a service discovery.
|
public ServicesQueue discover(ServiceType serviceType, FilterSpec filterSpec)
AutoCloseable in order to
facilitate simple usage in a try-with-resources block.serviceType - the abstract or concrete type of service to search forfilterSpec - the service filter specificationpublic static Discovery create(DiscoveryProvider... providers)
providers argument and its array
elements may not be null.providers - the discovery providers (must not be null)public static Discovery create(DiscoveryProvider provider)
provider argument may not be null.provider - the discovery provider (must not be null)Copyright © 2016 JBoss by Red Hat. All rights reserved.