public class GlobalQueryServiceRegistry extends ServiceRegistry
ServiceRegistry.UnlimitedIntermediateDelegationResultListener<E>
Modifier and Type | Field and Description |
---|---|
protected long |
delay
The global query delay.
|
protected java.util.Timer |
timer
The timer.
|
excluded, excludedservices, listeners, queries, searchfunc, services
Constructor and Description |
---|
GlobalQueryServiceRegistry(long delay)
Create a new GlobalQueryServiceRegistry.
|
Modifier and Type | Method and Description |
---|---|
<T> ISubscriptionIntermediateFuture<T> |
addQuery(ServiceQuery<T> query)
Add a service query to the registry.
|
protected void |
waitForDelay(long delay,
java.lang.Runnable run)
Wait for delay and execute runnable.
|
addEventListener, addExcludedComponent, addService, getQueries, getRegistry, getRegistry, getService, getServiceMap, getServices, getSubregistry, isIncluded, notifyListeners, removeEventListener, removeExcludedComponent, removeQueries, removeQuery, removeService, removeSubregistry, searchGlobalService, searchGlobalServices, searchRemoteService, searchRemoteServices, searchService, searchService, searchService, searchService, searchServices, searchServices, searchServices
protected java.util.Timer timer
protected long delay
public GlobalQueryServiceRegistry(long delay)
public <T> ISubscriptionIntermediateFuture<T> addQuery(ServiceQuery<T> query)
addQuery
in interface IServiceRegistry
addQuery
in class ServiceRegistry
query
- ServiceQuery.protected void waitForDelay(long delay, java.lang.Runnable run)