#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) | |
Initializes a new activation queue. More... | |
virtual | ~ACE_Activation_Queue (void) |
Destructor. More... | |
ACE_Method_Request * | dequeue (ACE_Time_Value *tv=0) |
| |
int | enqueue (ACE_Method_Request *new_method_request, ACE_Time_Value *tv=0) |
The priority of the method request is obtained via the priority() method of the queued method request. More... | |
size_t | method_count (void) const |
Get the current number of method objects in the queue. More... | |
int | is_empty (void) const |
Returns 1 if the queue is empty, 0 otherwise. More... | |
int | is_full (void) const |
Returns 1 if the queue is full, 0 otherwise. More... | |
void | dump (void) const |
Dump the state of an request. More... | |
ACE_Message_Queue< ACE_SYNCH > * | queue (void) const |
Get a pointer to the underlying queue. More... | |
void | queue (ACE_Message_Queue< ACE_SYNCH > *q) |
Set the pointer to the underlying queue. More... | |
Public Attributes | |
ACE_ALLOC_HOOK_DECLARE | |
Declare the dynamic allocation hooks. More... | |
Protected Attributes | |
ACE_Message_Queue< ACE_SYNCH > * | queue_ |
Stores the <Method_Requests>. More... | |
int | delete_queue_ |
Keeps track of whether we need to delete the queue. More... | |
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. More... | |
ACE_Allocator * | data_block_allocator_ |
Allocation strategy of the message blocks. More... |
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.
|
Initializes a new activation queue.
|
|
Destructor.
|
|
|
|
This method will return, earlier, however, if queue is closed, deactivated, or when a signal occurs.
|
|
Dump the state of an request.
|
|
The priority of the method request is obtained via the Priority ordering is determined by the ACE_Message_Queue class; 0 is the lowest priority.
|
|
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>.
|