TAO::Eager_Transport_Queueing_Strategy Class Reference

#include <Transport_Queueing_Strategies.h>

Inheritance diagram for TAO::Eager_Transport_Queueing_Strategy:

Inheritance graph
[legend]
Collaboration diagram for TAO::Eager_Transport_Queueing_Strategy:

Collaboration graph
[legend]
List of all members.

Public Member Functions

virtual bool must_queue (bool queue_empty) const
 Return true if a message must be queued.
virtual bool buffering_constraints_reached (TAO_Stub *stub, size_t msg_count, size_t total_bytes, bool &must_flush, const ACE_Time_Value &current_deadline, bool &set_timer, ACE_Time_Value &new_deadline) const
 Return true if it is time to start.

Private Member Functions

bool timer_check (const TAO::BufferingConstraint &buffering_constraint, const ACE_Time_Value &current_deadline, bool &set_timer, ACE_Time_Value &new_deadline) const
ACE_Time_Value time_conversion (const TimeBase::TimeT &time) const
 Convert from standard CORBA time units to seconds/microseconds.

Member Function Documentation

bool TAO::Eager_Transport_Queueing_Strategy::buffering_constraints_reached ( TAO_Stub stub,
size_t  msg_count,
size_t  total_bytes,
bool &  must_flush,
const ACE_Time_Value current_deadline,
bool &  set_timer,
ACE_Time_Value new_deadline 
) const [virtual]

Return true if it is time to start.

Parameters:
stub The object used to make the request, this is used to obtain the policies currently in effect for the request
msg_count The number of messages currently queued
total_bytes Number of bytes currently queued
set_timer Returns true if a timer should be set to drain the queue
interval If set_timer returns 1, this parameter contains the timer interval
must_flush Is set to true if things must be flushed at this moment

Implements TAO::Transport_Queueing_Strategy.

bool TAO::Eager_Transport_Queueing_Strategy::must_queue ( bool  queue_empty  )  const [virtual]

Return true if a message must be queued.

Implements TAO::Transport_Queueing_Strategy.

Reimplemented in TAO::Delayed_Transport_Queueing_Strategy.

ACE_Time_Value TAO::Eager_Transport_Queueing_Strategy::time_conversion ( const TimeBase::TimeT time  )  const [private]

Convert from standard CORBA time units to seconds/microseconds.

bool TAO::Eager_Transport_Queueing_Strategy::timer_check ( const TAO::BufferingConstraint &  buffering_constraint,
const ACE_Time_Value current_deadline,
bool &  set_timer,
ACE_Time_Value new_deadline 
) const [private]

Parameters:
buffering_constraint The constraints defined by the application
current_deadline The current deadline
set_timer Return true if the timer should be set
new_deadline Return the timer interval value
Returns:
Returns true if the deadline has already expired and flushing must commence immediately. If the function returns false then flushing may need to be delayed, use set_timer and


The documentation for this class was generated from the following files:
Generated on Tue Nov 21 09:36:28 2006 for TAO by  doxygen 1.4.7-1