-
public interface ExternalUrlLoader
-
-
Method Summary
Modifier and Type Method Description abstract Unitreset()Force the loading time to expire abstract Unitsave(UrlAware url, UrlTopic topic)Save the url to the external repository abstract UnitsaveAll(Iterable<UrlAware> urls, UrlTopic topic)Save all the url to the external repository abstract BooleanhasMore()If there are more items in the source abstract BooleanhasMore(UrlTopic topic)If there are more items in the source abstract IntegercountRemaining()Count remaining size abstract IntegercountRemaining(UrlTopic topic)Count remaining size abstract IntegerestimateRemaining()Estimate the size of remaining items, this operation should be very fast abstract IntegerestimateRemaining(UrlTopic topic)Estimate the size of remaining items, this operation should be very fast abstract Collection<UrlAware>loadToNow(Collection<UrlAware> sink, Integer size, UrlTopic topic)Load items from the source to the sink abstract <T extends Any> Collection<T>loadToNow(Collection<T> sink, Integer size, UrlTopic topic, Function1<UrlAware, T> transformer)Load items from the source to the sink abstract UnitloadTo(Collection<UrlAware> sink, Integer size, UrlTopic topic)Load items from the source to the sink abstract <T extends Any> UnitloadTo(Collection<T> sink, Integer size, UrlTopic topic, Function1<UrlAware, T> transformer)Load items from the source to the sink abstract LongdeleteAll(UrlTopic topic)-
-
Method Detail
-
saveAll
abstract Unit saveAll(Iterable<UrlAware> urls, UrlTopic topic)
Save all the url to the external repository
-
countRemaining
abstract Integer countRemaining()
Count remaining size
-
countRemaining
abstract Integer countRemaining(UrlTopic topic)
Count remaining size
-
estimateRemaining
abstract Integer estimateRemaining()
Estimate the size of remaining items, this operation should be very fast
-
estimateRemaining
abstract Integer estimateRemaining(UrlTopic topic)
Estimate the size of remaining items, this operation should be very fast
-
loadToNow
abstract Collection<UrlAware> loadToNow(Collection<UrlAware> sink, Integer size, UrlTopic topic)
Load items from the source to the sink
-
loadToNow
abstract <T extends Any> Collection<T> loadToNow(Collection<T> sink, Integer size, UrlTopic topic, Function1<UrlAware, T> transformer)
Load items from the source to the sink
-
loadTo
abstract Unit loadTo(Collection<UrlAware> sink, Integer size, UrlTopic topic)
Load items from the source to the sink
-
loadTo
abstract <T extends Any> Unit loadTo(Collection<T> sink, Integer size, UrlTopic topic, Function1<UrlAware, T> transformer)
Load items from the source to the sink
-
-
-
-