@ThreadSafe public class AdsUtilityRegistry extends Object
ads utilities.| Constructor and Description |
|---|
AdsUtilityRegistry() |
| Modifier and Type | Method and Description |
|---|---|
void |
addUtility(AdsUtility adsUtility)
Adds the specified utility to the registry.
|
Set<AdsUtility> |
getRegisteredUtilities()
Returns all utilities in the registry.
|
void |
removeUtilities(Collection<AdsUtility> utilities)
Removes the specified utilities from the registry.
|
public void addUtility(AdsUtility adsUtility)
Add is performed on a best efforts basis. It is possible that another thread will subsequently remove the utility immediately after the add.
NullPointerException - if adsUtility == nullpublic Set<AdsUtility> getRegisteredUtilities()
public void removeUtilities(Collection<AdsUtility> utilities)
Removal is performed on a best efforts basis. It is possible that another thread will subsequently add one or more of the utilities immediately after the remove.
NullPointerException - if utilities == nullCopyright © 2016. All Rights Reserved.