#include <Method_Request.h>
| Public Member Functions | |
| ACE_Method_Request (unsigned long priority=0) | |
| Constructor. | |
| virtual | ~ACE_Method_Request (void) | 
| Destructor. | |
| unsigned long | priority (void) const | 
| Get priority. | |
| void | priority (unsigned long prio) | 
| Set priority. | |
| virtual int | call (void)=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 &) | |
| Disallow copying and assignment. | |
| void | operator= (const ACE_Method_Request &) | 
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.
Definition at line 45 of file Method_Request.h.
| 
 | 
| Constructor. 
 Definition at line 9 of file Method_Request.cpp. 
 00010 : priority_ (prio) 00011 { 00012 } | 
| 
 | 
| Destructor. 
 Definition at line 14 of file Method_Request.cpp. 
 00015 {
00016 }
 | 
| 
 | 
| Disallow copying and assignment. 
 | 
| 
 | 
| Invoked by the scheduler to execute the request. This method must be implemented by the subclass to perform the desired actions. 
 
 | 
| 
 | 
| 
 | 
| 
 | 
| 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. 
 
 
 Definition at line 25 of file Method_Request.cpp. 
 00026 {
00027   this->priority_ = prio;
00028 }
 | 
| 
 | 
| Get priority. 
 Definition at line 19 of file Method_Request.cpp. 
 00020 {
00021   return this->priority_;
00022 }
 | 
| 
 | 
| The priority of the request. 
 Definition at line 92 of file Method_Request.h. | 
 1.3.6
 
1.3.6