e

executor

This small library provides an optimized solution to a problem where tasks for a particular key need to be processed sequentially as they arrive. This kind of problem can be solved by a SingleThreadExecutor, however it is not efficient. The issue is that the tasks for unrelated keys are not being processed in parallel, instead they are put into a queue common to all keys and wait for the single thread to execute them. This library allows them to be executed concurrently. Moreover this library works well in a situation where all the possible keys and their number is not known upfront.
https://github.com/jano7/executor
MIT License
Jan Gaspar
Files download
File Operation
executor-2.0.2.jar download
executor-2.0.2.pom download
executor-2.0.2-sources.jar download
Apache Maven
<dependency>
  <groupId>com.jano7</groupId>
  <artifactId>executor</artifactId>
  <version>2.0.2</version>
</dependency>
Gradle Groovy
implementation 'com.jano7:executor:2.0.2'
Gradle Kotlin
implementation("com.jano7:executor:2.0.2")
Scala SBT
libraryDependencies += "com.jano7" % "executor" % "2.0.2"
Groovy Grape
@Grapes(
  @Grab(group='com.jano7', module='executor', version='2.0.2')
)
Apache Ivy
<dependency org="com.jano7" name="executor" rev="2.0.2" />
Leiningen
[com.jano7/executor "2.0.2"]
Apache Buildr
'com.jano7:executor:jar:2.0.2'
Dependencies