Class MockTcpTransport

  • All Implemented Interfaces:
    java.io.Closeable, java.lang.AutoCloseable, LifecycleComponent, Releasable, Transport

    public class MockTcpTransport
    extends TcpTransport
    This is a socket based blocking TcpTransport implementation that is used for tests that need real networking. This implementation is a test only implementation that implements the networking layer in the worst possible way since it blocks and uses a thread per request model.