com.pivovarit.collectors.UnboundedDispatcher Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of parallel-collectors Show documentation
Show all versions of parallel-collectors Show documentation
Parallel collection processing with customizable thread pools
package com.pivovarit.collectors;
import java.util.concurrent.Executor;
/**
* @author Grzegorz Piwowarek
*/
final class UnboundedDispatcher extends Dispatcher {
UnboundedDispatcher(Executor executor) {
super(executor);
}
@Override
protected CheckedConsumer dispatchStrategy() {
return this::run;
}
}