Class SimpleClient

  • All Implemented Interfaces:
    Client

    public class SimpleClient
    extends Object
    implements Client
    • Constructor Detail

      • SimpleClient

        public SimpleClient​(String host,
                            int port,
                            int id,
                            String name,
                            String token)
      • SimpleClient

        public SimpleClient​(int id,
                            String name,
                            String token)
    • Method Detail

      • getHost

        public String getHost()
      • getPort

        public int getPort()
      • getId

        public int getId()
        Description copied from interface: Client
        Get the client id
        Specified by:
        getId in interface Client
        Returns:
        the client id
      • getToken

        public String getToken()
      • getName

        public String getName()
        Description copied from interface: Client
        Get the client name
        Specified by:
        getName in interface Client
        Returns:
        the client name