private static final class ServiceDiscoveryManager.ServiceItemReg extends Object
Modifier and Type | Field and Description |
---|---|
private boolean |
bDiscarded |
private ServiceItem |
filteredItem |
private ServiceItem |
item |
private Map<ServiceRegistrar,ServiceItem> |
items |
private ServiceRegistrar |
proxy |
Constructor and Description |
---|
ServiceItemReg(ServiceRegistrar proxy,
ServiceItem item) |
Modifier and Type | Method and Description |
---|---|
boolean |
discard() |
ServiceItem |
getFilteredItem() |
ServiceItem |
getItem() |
ServiceRegistrar |
getProxy() |
boolean |
hasNoProxys() |
boolean |
isDiscarded() |
boolean |
proxyNotUsedToTrackChange(ServiceRegistrar proxy,
ServiceItem item) |
ServiceItem |
removeProxy(ServiceRegistrar proxy) |
void |
replaceProxyUsedToTrackChange(ServiceRegistrar proxy,
ServiceItem item)
Replaces the proxy used to track change if the proxy passed in is non null,
also replaces the ServiceItem.
|
void |
setFilteredItem(ServiceItem filteredItem) |
boolean |
unDiscard() |
private final Map<ServiceRegistrar,ServiceItem> items
private ServiceRegistrar proxy
private boolean bDiscarded
private ServiceItem item
private ServiceItem filteredItem
public ServiceItemReg(ServiceRegistrar proxy, ServiceItem item)
public boolean proxyNotUsedToTrackChange(ServiceRegistrar proxy, ServiceItem item)
public void replaceProxyUsedToTrackChange(ServiceRegistrar proxy, ServiceItem item)
proxy
- replacement proxyitem
- replacement item.public ServiceItem removeProxy(ServiceRegistrar proxy)
public boolean hasNoProxys()
public boolean isDiscarded()
public boolean discard()
public boolean unDiscard()
public ServiceRegistrar getProxy()
public ServiceItem getFilteredItem()
public void setFilteredItem(ServiceItem filteredItem)
filteredItem
- the filteredItem to setpublic ServiceItem getItem()
Copyright 2007-2013, multiple authors.
Licensed under the Apache License, Version 2.0, see the NOTICE file for attributions.