#include <Activation_Queue.h>
Collaboration diagram for ACE_Activation_Queue:
Public Methods | |
ACE_Activation_Queue (ACE_Message_Queue< ACE_SYNCH > *new_queue=0, ACE_Allocator *alloc=0, ACE_Allocator *db_alloc=0) | |
Constructor. | |
virtual | ~ACE_Activation_Queue (void) |
Destructor. | |
ACE_Method_Request * | dequeue (ACE_Time_Value *tv=0) |
Dequeue the next available ACE_Method_Request. | |
int | enqueue (ACE_Method_Request *new_method_request, ACE_Time_Value *tv=0) |
Enqueue the ACE_Method_Request in priority order. | |
size_t | method_count (void) const |
Get the current number of method objects in the queue. | |
int | is_empty (void) const |
Returns 1 if the queue is empty, 0 otherwise. | |
int | is_full (void) const |
Returns 1 if the queue is full, 0 otherwise. | |
void | dump (void) const |
Dump the state of an request. | |
ACE_Message_Queue< ACE_SYNCH > * | queue (void) const |
Get a pointer to the underlying queue. | |
void | queue (ACE_Message_Queue< ACE_SYNCH > *q) |
Set the pointer to the underlying queue. | |
Public Attributes | |
ACE_ALLOC_HOOK_DECLARE | |
Declare the dynamic allocation hooks. | |
Protected Attributes | |
ACE_Message_Queue< ACE_SYNCH > * | queue_ |
Stores the <Method_Requests>. | |
int | delete_queue_ |
Keeps track of whether we need to delete the queue. | |
Private Methods | |
void | operator= (const ACE_Activation_Queue &) |
ACE_Activation_Queue (const ACE_Activation_Queue &) | |
Private Attributes | |
ACE_Allocator * | allocator_ |
Allocation strategy of the queue. | |
ACE_Allocator * | data_block_allocator_ |
Allocation strategy of the message blocks. |
Maintains a priority-ordered queue of ACE_Method_Request objects. A scheduler class (often derived from ACE_Task) subsequently removes each method request and invokes its call()
method.
This class is discussed in depth in the Active Object chapter of POSA2. In that book, it is referred to as an Activation List.
|
Constructor. Initializes a new activation queue.
|
|
Destructor.
|
|
|
|
Dequeue the next available ACE_Method_Request.
|
|
Dump the state of an request.
|
|
Enqueue the ACE_Method_Request in priority order.
The priority of the method request is obtained via the
|
|
Returns 1 if the queue is empty, 0 otherwise.
|
|
Returns 1 if the queue is full, 0 otherwise.
|
|
Get the current number of method objects in the queue.
|
|
|
|
Set the pointer to the underlying queue.
|
|
Get a pointer to the underlying queue.
|
|
Declare the dynamic allocation hooks.
|
|
Allocation strategy of the queue.
|
|
Allocation strategy of the message blocks.
|
|
Keeps track of whether we need to delete the queue.
|
|
Stores the <Method_Requests>.
|