All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ai.platon.pulsar.common.collect.queue.LoadingQueue.kt Maven / Gradle / Ivy

There is a newer version: 2.1.0
Show newest version
package ai.platon.pulsar.common.collect.queue

import ai.platon.pulsar.common.collect.Loadable
import ai.platon.pulsar.common.urls.UrlAware
import java.util.*

interface LoadingQueue : Queue, Loadable {
    companion object {
        /**
         * An url queue should be small since every url uses about 1s to fetch
         * */
        const val DEFAULT_CAPACITY = 200
    }

    val externalSize: Int

    val estimatedExternalSize: Int

    val estimatedSize: Int

    fun shuffle()

    fun overflow(url: UrlAware)

    fun overflow(urls: List)

    fun deepClear() = clear()
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy