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

Represents an enqueue agent that uses a round-robin scheduling strategy for task execution. More...

Inheritance diagram for XmobiTea.Threading.RoundRobinEnqueueAgent:
XmobiTea.Threading.Agent.IEnqueueInternal XmobiTea.Threading.IEnqueue

Public Member Functions

 RoundRobinEnqueueAgent (IStatisticsCounterChange counter, string name, int count)
 Initializes a new instance of the RoundRobinEnqueueAgent class.
 
ISingleTask Enqueue (Action action)
 Enqueues an action to be executed.
 
void Enqueue (SingleTask task)
 Enqueues a single task to be executed using round-robin scheduling.
 
void Start ()
 Starts all child threads for processing enqueued tasks.
 
void Dispose ()
 Disposes of all child threads and releases any resources.
 
- Public Member Functions inherited from XmobiTea.Threading.Agent.IEnqueueInternal
- Public Member Functions inherited from XmobiTea.Threading.IEnqueue

Detailed Description

Represents an enqueue agent that uses a round-robin scheduling strategy for task execution.

Constructor & Destructor Documentation

◆ RoundRobinEnqueueAgent()

XmobiTea.Threading.RoundRobinEnqueueAgent.RoundRobinEnqueueAgent ( IStatisticsCounterChange counter,
string name,
int count )

Initializes a new instance of the RoundRobinEnqueueAgent class.

Parameters
counterThe counter for tracking enqueue statistics.
nameThe name of the agent.
countThe number of child threads to use.

Member Function Documentation

◆ Enqueue() [1/2]

ISingleTask XmobiTea.Threading.RoundRobinEnqueueAgent.Enqueue ( Action action)

Enqueues an action to be executed.

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

Implements XmobiTea.Threading.IEnqueue.

◆ Enqueue() [2/2]

void XmobiTea.Threading.RoundRobinEnqueueAgent.Enqueue ( SingleTask task)

Enqueues a single task to be executed using round-robin scheduling.

Parameters
taskThe task to be enqueued.

Implements XmobiTea.Threading.Agent.IEnqueueInternal.


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