org.xyro.kumulus.collector.KumulusSpoutCollector.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kumulus Show documentation
Show all versions of kumulus Show documentation
A lightweight, in-process, drop-in replacement for Apache Storm
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