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

no.difi.move.common.io.pipe.Plumber Maven / Gradle / Ivy

The newest version!
package no.difi.move.common.io.pipe;

import lombok.RequiredArgsConstructor;
import org.springframework.core.task.TaskExecutor;

import java.io.PipedOutputStream;
import java.util.function.Consumer;

@RequiredArgsConstructor
public class Plumber {

    private final TaskExecutor taskExecutor;

    public Pipe pipe(String description, Consumer consumer, Reject reject) {
        return Pipe.of(taskExecutor, description, consumer, reject);
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy