Class BotTimerTask

java.lang.Object
java.util.TimerTask
com.example.bot.BotTimerTask
All Implemented Interfaces:
Runnable

public class BotTimerTask extends TimerTask
The BotTimerTask class extends TimerTask and represents a timer task for sending messages to clients.
  • Constructor Details

    • BotTimerTask

      public BotTimerTask()
  • Method Details

    • run

      public void run()
      Executes the timer task by sending random messages to clients.
      Specified by:
      run in interface Runnable
      Specified by:
      run in class TimerTask
    • setClients

      public void setClients(List<Client> clients)
      Sets the list of clients for the timer task.
      Parameters:
      clients - the list of clients to set
    • getClients

      public List<Client> getClients()
      Retrieves the list of clients associated with the timer task.
      Returns:
      the list of clients