![]() |
ProtonNet Server 1.0
An Open Solution for all your socket or web api needs.
|
Represents a pool of fibers that can enqueue tasks, schedule tasks, and schedule tasks at regular intervals. More...
Public Member Functions | |
PoolFiber () | |
Initializes a new instance of the PoolFiber class. | |
IStatisticsCounter | GetEnqueueCounter () |
Gets the counter for tracking enqueued tasks. | |
IStatisticsCounter | GetScheduleCounter () |
Gets the counter for tracking scheduled tasks. | |
IStatisticsCounter | GetScheduleOnIntervalCounter () |
Gets the counter for tracking tasks scheduled on intervals. | |
ISingleTask | Enqueue (Action action) |
Enqueues an action to be executed. | |
IScheduleTask | Schedule (Action action, long firstInMs) |
Schedules an action to be executed after a specified delay. | |
IScheduleOnIntervalTask | ScheduleOnInterval (Action action, long firstInMs, int regularInMs) |
Schedules an action to be executed at regular intervals. | |
void | Start () |
Starts the fiber. | |
void | Dispose () |
Disposes of the fiber, releasing any resources. | |
![]() | |
![]() | |
![]() | |
![]() | |
![]() |
Represents a pool of fibers that can enqueue tasks, schedule tasks, and schedule tasks at regular intervals.
void XmobiTea.Threading.PoolFiber.Dispose | ( | ) |
Disposes of the fiber, releasing any resources.
Implements XmobiTea.Threading.IFiberControl.
ISingleTask XmobiTea.Threading.PoolFiber.Enqueue | ( | Action | action | ) |
Enqueues an action to be executed.
action | The action to be enqueued. |
Implements XmobiTea.Threading.IEnqueue.
IStatisticsCounter XmobiTea.Threading.PoolFiber.GetEnqueueCounter | ( | ) |
Gets the counter for tracking enqueued tasks.
Implements XmobiTea.Threading.IFiberStatisticsCounter.
IStatisticsCounter XmobiTea.Threading.PoolFiber.GetScheduleCounter | ( | ) |
Gets the counter for tracking scheduled tasks.
Implements XmobiTea.Threading.IFiberStatisticsCounter.
IStatisticsCounter XmobiTea.Threading.PoolFiber.GetScheduleOnIntervalCounter | ( | ) |
Gets the counter for tracking tasks scheduled on intervals.
Implements XmobiTea.Threading.IFiberStatisticsCounter.
IScheduleTask XmobiTea.Threading.PoolFiber.Schedule | ( | Action | action, |
long | firstInMs ) |
Schedules an action to be executed after a specified delay.
action | The action to be scheduled. |
firstInMs | The delay in milliseconds before the action is executed. |
Implements XmobiTea.Threading.ISchedule.
IScheduleOnIntervalTask XmobiTea.Threading.PoolFiber.ScheduleOnInterval | ( | Action | action, |
long | firstInMs, | ||
int | regularInMs ) |
Schedules an action to be executed at regular intervals.
action | The action to be scheduled. |
firstInMs | The delay in milliseconds before the first execution of the action. |
regularInMs | The interval in milliseconds between subsequent executions of the action. |
Implements XmobiTea.Threading.IScheduleOnInterval.
void XmobiTea.Threading.PoolFiber.Start | ( | ) |
Starts the fiber.
Implements XmobiTea.Threading.IFiberControl.