ProtonNet Server 1.0
An Open Solution for all your socket or web api needs.
Loading...
Searching...
No Matches
XmobiTea.Threading.Agent.ScheduleAgent Class Reference

Manages and services tasks that are scheduled to run at a specific time. More...

Inheritance diagram for XmobiTea.Threading.Agent.ScheduleAgent:
XmobiTea.Threading.ISchedule XmobiTea.Threading.IService

Public Member Functions

 ScheduleAgent (IStatisticsCounterChange counter, IEnqueueInternal enqueueInternal)
 Initializes a new instance of the ScheduleAgent class.
 
IScheduleTask Schedule (Action action, long firstInMs)
 Schedules a task to run after a specified delay.
 
void Service ()
 Services pending tasks by executing them when their scheduled time arrives.
 
- Public Member Functions inherited from XmobiTea.Threading.ISchedule
- Public Member Functions inherited from XmobiTea.Threading.IService

Detailed Description

Manages and services tasks that are scheduled to run at a specific time.

Constructor & Destructor Documentation

◆ ScheduleAgent()

XmobiTea.Threading.Agent.ScheduleAgent.ScheduleAgent ( IStatisticsCounterChange counter,
IEnqueueInternal enqueueInternal )

Initializes a new instance of the ScheduleAgent class.

Parameters
counterThe statistics counter for tracking task metrics.
enqueueInternalThe enqueue interface for managing task execution.

Member Function Documentation

◆ Schedule()

IScheduleTask XmobiTea.Threading.Agent.ScheduleAgent.Schedule ( Action action,
long firstInMs )

Schedules a task to run after a specified delay.

Parameters
actionThe action to be executed by the task.
firstInMsThe delay in milliseconds before the task is first executed.
Returns
An instance of IScheduleTask representing the scheduled task.

Implements XmobiTea.Threading.ISchedule.

◆ Service()

void XmobiTea.Threading.Agent.ScheduleAgent.Service ( )

Services pending tasks by executing them when their scheduled time arrives.

Implements XmobiTea.Threading.IService.


The documentation for this class was generated from the following file: