Interface BotWorker

All Known Implementing Classes:
BaseBotWorker

public interface BotWorker
The BotWorker interface defines the methods for managing bots in the chat application.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    addBots(String ipServer, int portServer, int startPort, int countBot, int intervalCount)
    Add bots to the server with the specified parameters.
    void
    removeBots(int intervalExit)
    Remove bots from the server at a specified interval.
    void
    startSendMessage(int timerSendMessage, int intervalSend)
    Start sending messages with a specified timer and interval for sending messages.
  • Method Details

    • addBots

      void addBots(String ipServer, int portServer, int startPort, int countBot, int intervalCount)
      Add bots to the server with the specified parameters.
      Parameters:
      ipServer - the IP address of the server
      portServer - the port number of the server
      startPort - the starting port number for bots
      countBot - the number of bots to add
      intervalCount - the interval between adding bots
    • startSendMessage

      void startSendMessage(int timerSendMessage, int intervalSend)
      Start sending messages with a specified timer and interval for sending messages.
      Parameters:
      timerSendMessage - the timer for sending messages
      intervalSend - the interval between message sends
    • removeBots

      void removeBots(int intervalExit)
      Remove bots from the server at a specified interval.
      Parameters:
      intervalExit - the interval for removing bots