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
IOExceptionpublic void close()
throws IOException
close in interface AutoCloseableIOExceptionCopyright © 2024 The Apache Software Foundation. All rights reserved.