org.wildfly.common.context.Contextual<Discovery>public final class Discovery extends Object implements org.wildfly.common.context.Contextual<Discovery>
| Modifier and Type | Method | Description |
|---|---|---|
static Discovery |
create(DiscoveryProvider provider) |
Create a discovery object with the given single provider.
|
static Discovery |
create(DiscoveryProvider... providers) |
Create a discovery object with the given providers.
|
ServicesQueue |
discover(ServiceDescription description) |
Perform a service discovery.
|
ServicesQueue |
discover(ServiceType serviceType,
FilterSpec filterSpec) |
Perform a service discovery.
|
ServicesQueue |
discover(ServiceType serviceType,
FilterSpec filterSpec,
long timeout,
TimeUnit timeUnit) |
Perform a service discovery.
|
static org.wildfly.common.context.ContextManager<Discovery> |
getContextManager() |
Get the context manager.
|
org.wildfly.common.context.ContextManager<Discovery> |
getInstanceContextManager() |
Get the instance context manager.
|
run, runAction, runBiConsumer, runBiFunction, runBiPredicate, runCallable, runConsumer, runExBiConsumer, runExBiFunction, runExBiPredicate, runExceptionAction, runExConsumer, runExFunction, runExIntFunction, runExLongFunction, runExPredicate, runFunction, runIntFunction, runLongFunction, runPredicatepublic org.wildfly.common.context.ContextManager<Discovery> getInstanceContextManager()
getContextManager().getInstanceContextManager in interface org.wildfly.common.context.Contextual<Discovery>null)public static org.wildfly.common.context.ContextManager<Discovery> getContextManager()
null)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 ServicesQueue discover(ServiceType serviceType, FilterSpec filterSpec, long timeout, TimeUnit timeUnit)
AutoCloseable in order to
facilitate simple usage in a try-with-resources block.
This method allows a timeout to be specified.serviceType - the abstract or concrete type of service to search forfilterSpec - the service filter specificationtimeout - the timeout durationtimeUnit - the unit of time for the timeoutpublic ServicesQueue discover(ServiceDescription description)
AutoCloseable in order to
facilitate simple usage in a try-with-resources block.description - the service description (must not be null)public 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 © 2019 JBoss by Red Hat. All rights reserved.