Package 

Class OneLoadExternalUrlLoader

    • Method Summary

      Modifier and Type Method Description
      Integer countRemaining() Count remaining size, this operation might be slow for a large url database, use estimateRemaining for fast counting.
      Integer countRemaining(UrlTopic topic) Count remaining size with topic, this operation might be slow for a large url database, use estimateRemaining for fast counting.
      Integer estimateRemaining() Estimate the size of remaining items, this operation should be very fast
      Integer estimateRemaining(UrlTopic topic) Estimate the size of remaining items, this operation should be very fast
      <T extends Any> Unit loadTo(Collection<T> sink, Integer size, UrlTopic topic, Function1<UrlAware, T> transformer) Load items from the source to the sink safely
      Unit reset() Force the loading time to expire
      • Methods inherited from class ai.platon.pulsar.common.collect.OneLoadExternalUrlLoader

        hasMore, hasMore, loadTo, loadToNow, saveAll
      • Methods inherited from class ai.platon.pulsar.common.collect.AbstractExternalUrlLoader

        deleteAll, loadToNow, save
      • Methods inherited from class java.lang.Object

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

      • OneLoadExternalUrlLoader

        OneLoadExternalUrlLoader()