public static class EchoServer.ClientConnection extends Object implements AutoCloseable
Constructor and Description |
---|
ClientConnection(Socket socket) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
void |
run()
Reads a record batch off the socket and writes it back out.
|
public final Socket socket
public ClientConnection(Socket socket)
public void run() throws IOException
IOException
public void close() throws IOException
close
in interface AutoCloseable
IOException
Copyright © 2023 The Apache Software Foundation. All rights reserved.