![JAR search and dependency download from the Maven repository](/logo.png)
org.snapscript.agent.event.ProcessEventConnection Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of snap-all Show documentation
Show all versions of snap-all Show documentation
Dynamic scripting for the JVM
package org.snapscript.agent.event;
import java.io.Closeable;
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.util.concurrent.Executor;
import org.snapscript.agent.log.ProcessLogger;
public class ProcessEventConnection {
private final ProcessEventConsumer consumer;
private final ProcessEventProducer producer;
public ProcessEventConnection(ProcessLogger logger, Executor executor, InputStream input, OutputStream output, Closeable closeable) {
this.consumer = new ProcessEventConsumer(input, closeable);
this.producer = new ProcessEventProducer(logger, output, closeable, executor);
}
public ProcessEventConsumer getConsumer() throws IOException {
return consumer;
}
public ProcessEventProducer getProducer() throws IOException {
return producer;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy