Class SingleThreadConnection

java.lang.Object
za.co.wethinkcode.robots.server.SingleThreadConnection
All Implemented Interfaces:
Runnable

public class SingleThreadConnection extends Object implements Runnable
The Single Thread Connection encapsulates an ongoing connection between a client and a server
  • Constructor Details

  • Method Details

    • executeCommand

      public com.google.gson.JsonObject executeCommand(Command c)
      Takes in a Command and executes it. Returning the resulting JsonObject
      Parameters:
      c - the Command being executed
      Returns:
      the result of the command execution
    • run

      public void run()
      Specified by:
      run in interface Runnable