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

org.xyro.kumulus.collector.KumulusSpoutCollector.kt Maven / Gradle / Ivy

There is a newer version: 0.1.41
Show newest version
package org.xyro.kumulus.collector

import org.apache.storm.spout.ISpoutOutputCollector
import org.xyro.kumulus.KumulusAcker
import org.xyro.kumulus.KumulusEmitter
import org.xyro.kumulus.component.KumulusComponent
import org.xyro.kumulus.component.KumulusSpout

class KumulusSpoutCollector(
        component: KumulusComponent,
        emitter: KumulusEmitter,
        acker: KumulusAcker,
        errorHandler: ((String, Int, Throwable) -> Unit)?
) : KumulusCollector(
        component,
        emitter,
        acker,
        errorHandler
), ISpoutOutputCollector {
    override fun emitDirect(taskId: Int, streamId: String?, tuple: MutableList?, messageId: Any?) {
        TODO("not implemented") //To change body of created functions use File | Settings | File Templates.
    }

    override fun getPendingCount(): Long {
        return acker.getPendingCount()
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy