|
ACE 8.0.1
|
Reifies a method into a request. Subclasses must provide the necessary state and behavior. More...
#include <Method_Request.h>
Public Member Functions | |
| ACE_Method_Request (unsigned long priority=0) | |
| Constructor. | |
| virtual | ~ACE_Method_Request ()=default |
| Destructor. | |
| unsigned long | priority () const |
| Get priority. | |
| void | priority (unsigned long prio) |
| Set priority. | |
| virtual int | call ()=0 |
| Invoked by the scheduler to execute the request. | |
Protected Attributes | |
| unsigned long | priority_ |
| The priority of the request. | |
Private Member Functions | |
| ACE_Method_Request (const ACE_Method_Request &)=delete | |
| void | operator= (const ACE_Method_Request &)=delete |
| ACE_Method_Request (ACE_Method_Request &&)=delete | |
| void | operator= (ACE_Method_Request &&)=delete |
Reifies a method into a request. Subclasses must provide the necessary state and behavior.
An ACE_Method_Request is inserted in an ACE_Activation_Queue, where it is subsequently removed by a scheduler object (often derived from ACE_Task), which invokes the call() method.
This class is discussed in depth in the Active Object chapter of POSA2.
|
virtualdefault |
Destructor.
|
privatedelete |
|
privatedelete |
Invoked by the scheduler to execute the request.
This method must be implemented by the subclass to perform the desired actions.
|
privatedelete |
|
privatedelete |
Set priority.
Priority values are user-defined. The default (set in the constructor) is 0. The priority value is used in the ACE_Activation_Queue::enqueue() method to order the method requests in the queue by priority. 0 is the lowest priority.
| prio | unsigned long, the new priority value for this object. |