#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. More... | |
virtual | ~ACE_Activation_Queue (void) |
Destructor. More... | |
ACE_Method_Request * | dequeue (ACE_Time_Value *tv=0) |
Dequeue the next available <Method_Request>. More... | |
int | enqueue (ACE_Method_Request *new_method_request, ACE_Time_Value *tv=0) |
Enqueue the <Method_Request> in priority order. The priority is determined by the <priority> method of the <new_message_request>. More... | |
int | 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 |
void | queue (ACE_Message_Queue< ACE_SYNCH > *q) |
Get a pointer to the underlying queue. More... | |
Public Attributes | |
ACE_ALLOC_HOOK_DECLARE | |
Set the pointer to the underlying queue. 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... |
A <Method_Request> is inserted in the <Activation_Queue>, where it is subsequently removed by the <Scheduler>, which invokes its <call> method..
|
Constructor.
|
|
Destructor.
|
|
|
|
Dequeue the next available <Method_Request>.
|
|
Dump the state of an request.
|
|
Enqueue the <Method_Request> in priority order. The priority is determined by the <priority> method of the <new_message_request>.
|
|
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.
|
|
|
|
Get a pointer to the underlying queue.
|
|
|
|
Set the 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>.
|