![JAR search and dependency download from the Maven repository](/logo.png)
com.launchdarkly.testhelpers.tcptest.TcpHandler Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of test-helpers Show documentation
Show all versions of test-helpers Show documentation
LaunchDarkly Java test helpers
package com.launchdarkly.testhelpers.tcptest;
import java.io.IOException;
import java.net.Socket;
/**
* Use with {@link TcpServer} to define behavior for a TCP endpoint in a test.
*
* @since 1.3.0
*/
public interface TcpHandler {
/**
* Processes the request.
*
* @param socket the incoming socket
* @throws IOException for any I/O error
*/
void apply(Socket socket) throws IOException;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy