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

Manages and processes tasks that need to be executed. Implements task enqueuing and processing with statistics tracking. More...

Inheritance diagram for XmobiTea.Threading.Agent.EnqueueAgent:
XmobiTea.Threading.Agent.IEnqueueInternal XmobiTea.Threading.IEnqueue XmobiTea.Threading.IService

Public Member Functions

 EnqueueAgent (IStatisticsCounterChange counter)
 Initializes a new instance of the EnqueueAgent class.
 
ISingleTask Enqueue (Action action)
 Enqueues a new action task for execution.
 
void Enqueue (SingleTask task)
 Enqueues a SingleTask for execution.
 
void Service ()
 Processes pending tasks in the queue. Updates the statistics counters based on task execution.
 
- Public Member Functions inherited from XmobiTea.Threading.Agent.IEnqueueInternal
- Public Member Functions inherited from XmobiTea.Threading.IEnqueue
- Public Member Functions inherited from XmobiTea.Threading.IService

Detailed Description

Manages and processes tasks that need to be executed. Implements task enqueuing and processing with statistics tracking.

Constructor & Destructor Documentation

◆ EnqueueAgent()

XmobiTea.Threading.Agent.EnqueueAgent.EnqueueAgent ( IStatisticsCounterChange counter)

Initializes a new instance of the EnqueueAgent class.

Parameters
counterThe counter used for tracking statistics.

Member Function Documentation

◆ Enqueue() [1/2]

ISingleTask XmobiTea.Threading.Agent.EnqueueAgent.Enqueue ( Action action)

Enqueues a new action task for execution.

Parameters
actionThe action to be executed.
Returns
An ISingleTask representing the enqueued task.

Implements XmobiTea.Threading.IEnqueue.

◆ Enqueue() [2/2]

void XmobiTea.Threading.Agent.EnqueueAgent.Enqueue ( SingleTask task)

Enqueues a SingleTask for execution.

Parameters
taskThe task to be enqueued.

Implements XmobiTea.Threading.Agent.IEnqueueInternal.

◆ Service()

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

Processes pending tasks in the queue. Updates the statistics counters based on task execution.

Implements XmobiTea.Threading.IService.


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