Package 

Class OxAdPoolManager

    • Method Summary

      Modifier and Type Method Description
      static OxAdPoolManager getInstance()
      synchronized void put(OxAd ad) 插入一条广告
      synchronized void put(List<OxAd> ads) 插入若干条广告
      synchronized List<OxAd> get(String adType, String placement) 取若干条广告
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • put

         synchronized void put(OxAd ad)

        插入一条广告

        Parameters:
        ad - 广告
      • put

         synchronized void put(List<OxAd> ads)

        插入若干条广告

        Parameters:
        ads - 广告列表
      • get

         synchronized List<OxAd> get(String adType, String placement)

        取若干条广告

        Parameters:
        adType - 广告类型
        placement - 广告位