public interface ServiceTracker
Modifier and Type | Interface and Description |
---|---|
static interface |
ServiceTracker.ServiceListener |
Modifier and Type | Method and Description |
---|---|
Closeable |
trackService(String serviceName,
ServiceTracker.ServiceListener listener)
Issues callbacks to the given listener for services that:
1) Have the given service name
Callbacks are expected to be issued immediately for all existing services that match the criteria.
|
Closeable |
trackServiceMatchingFilterRule(String serviceName,
String filterRule,
ServiceTracker.ServiceListener listener)
Issues callbacks to the given listener for services that:
1) Have the given service name
2) Match the given filter rule
Callbacks are expected to be issued immediately for all existing services that match the criteria.
|
Closeable trackServiceMatchingFilterRule(String serviceName, String filterRule, ServiceTracker.ServiceListener listener)
serviceName
- only interfaces with the given service name attached will be consideredfilterRule
- only interfaces that match the given filter will be considered
if null, or empty the filter will match everythinglistener
- used for callbacksCloseable trackService(String serviceName, ServiceTracker.ServiceListener listener)
serviceName
- only interfaces with the given service name attached will be consideredlistener
- used for callbacksCopyright © 2021. All rights reserved.