Class TimeOutScanTask

  • All Implemented Interfaces:
    ITask

    public final class TimeOutScanTask
    extends AbstractLogger
    implements ITask
    For a player which is in IDLE mode, that means for a long time without receiving or sending any data from the server or from a client. This task will scan those IDLE players in period time and force them to log out. Those players got a "timeout" error.
    Author:
    kong
    • Constructor Detail

      • TimeOutScanTask

        public TimeOutScanTask​(IEventManager eventManager,
                               PlayerApi playerApi,
                               int idleReader,
                               int idleWriter,
                               int timeoutScanPeriod)
    • Method Detail

      • run

        public java.util.concurrent.ScheduledFuture<?> run()
        Specified by:
        run in interface ITask