Class ClientHandler
java.lang.Object
ru.hse.germandilio.tetris.server.clienthandling.ClientHandler
- All Implemented Interfaces:
AutoCloseable,Runnable,CommandSender
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidclose()Close listening socket and/or thread.voidrun()voidsendCommand(String command) Send command.
-
Constructor Details
-
ClientHandler
- Throws:
IOException
-
-
Method Details
-
run
public void run() -
close
Description copied from interface:CommandSenderClose listening socket and/or thread.- Specified by:
closein interfaceAutoCloseable- Specified by:
closein interfaceCommandSender- Throws:
Exception- on closing
-
sendCommand
Description copied from interface:CommandSenderSend command.- Specified by:
sendCommandin interfaceCommandSender- Parameters:
command-Stringrepresented command.
-