@ThreadSafe public final class AdsUtilityRegistry extends Object
ads utilities.| Modifier and Type | Method and Description |
|---|---|
void |
addUtility(AdsUtility adsUtility)
Adds the specified utility to the registry.
|
static AdsUtilityRegistry |
getInstance()
Returns the singleton of this class.
|
Set<AdsUtility> |
popRegisteredUtilities()
Returns all utilities in the registry and clears the registry.
|
public static AdsUtilityRegistry getInstance()
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> popRegisteredUtilities()
Copyright © 2020. All Rights Reserved.