|
Project SkyFire Core
SkyFire 5.4.8 server core API documentation
|
#include <DelayExecutor.h>
Classes | |
| struct | Impl |
Public Member Functions | |
| bool | activated () |
| int | deactivate () |
| DelayExecutor () | |
| int | execute (std::unique_ptr< DelayTask > new_req) |
| DelayExecutorMetricsSnapshot | GetMetricsSnapshot () const |
| void | ResetMetrics () |
| int | start (int num_threads=1, std::unique_ptr< DelayTask > pre_svc_hook=std::unique_ptr< DelayTask >(), std::unique_ptr< DelayTask > post_svc_hook=std::unique_ptr< DelayTask >()) |
| int | svc () |
| virtual | ~DelayExecutor () |
Static Public Member Functions | |
| static DelayExecutor * | instance () |
Private Member Functions | |
| void | activated (bool s) |
Private Attributes | |
| std::unique_ptr< Impl > | impl_ |
Definition at line 33 of file DelayExecutor.h.
| DelayExecutor::DelayExecutor | ( | ) |
|
virtual |
Definition at line 62 of file DelayExecutor.cpp.
References deactivate().
| bool DelayExecutor::activated | ( | ) |
|
private |
Definition at line 174 of file DelayExecutor.cpp.
References impl_.
| int DelayExecutor::deactivate | ( | ) |
| int DelayExecutor::execute | ( | std::unique_ptr< DelayTask > | new_req | ) |
Definition at line 134 of file DelayExecutor.cpp.
References impl_.
| DelayExecutorMetricsSnapshot DelayExecutor::GetMetricsSnapshot | ( | ) | const |
Definition at line 180 of file DelayExecutor.cpp.
References DelayExecutorMetricsSnapshot::Backlog, DelayExecutorMetricsSnapshot::BacklogHighWater, DelayExecutorMetricsSnapshot::BacklogHighWaterEvents, DelayExecutorMetricsSnapshot::Completed, impl_, DelayExecutorMetricsSnapshot::Rejected, and DelayExecutorMetricsSnapshot::Submitted.
|
static |
Definition at line 54 of file DelayExecutor.cpp.
References DelayExecutor(), and Skyfire::Singleton< T, Lock >::instance().
| void DelayExecutor::ResetMetrics | ( | ) |
Definition at line 193 of file DelayExecutor.cpp.
References impl_.
| int DelayExecutor::start | ( | int | num_threads = 1, |
| std::unique_ptr< DelayTask > | pre_svc_hook = std::unique_ptr<DelayTask>(), | ||
| std::unique_ptr< DelayTask > | post_svc_hook = std::unique_ptr<DelayTask>() ) |
Definition at line 99 of file DelayExecutor.cpp.
References activated(), and impl_.
| int DelayExecutor::svc | ( | ) |
Definition at line 86 of file DelayExecutor.cpp.
References impl_.
|
private |
Definition at line 50 of file DelayExecutor.h.
Referenced by activated(), activated(), deactivate(), DelayExecutor(), execute(), GetMetricsSnapshot(), ResetMetrics(), start(), and svc().