TAO 3.1.4
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | List of all members
TAO_Block_Flushing_Strategy Class Reference

Implement a flushing strategy that blocks on write to flush. More...

#include <Block_Flushing_Strategy.h>

Inheritance diagram for TAO_Block_Flushing_Strategy:
Inheritance graph
[legend]
Collaboration diagram for TAO_Block_Flushing_Strategy:
Collaboration graph
[legend]

Public Member Functions

int schedule_output (TAO_Transport *transport) override
 
int cancel_output (TAO_Transport *transport) override
 Cancel all scheduled output for the transport argument.
 
int flush_message (TAO_Transport *transport, TAO_Queued_Message *msg, ACE_Time_Value *max_wait_time) override
 
int flush_transport (TAO_Transport *transport, ACE_Time_Value *max_wait_time) override
 Wait until the transport has no messages queued.
 
- Public Member Functions inherited from TAO_Flushing_Strategy
virtual ~TAO_Flushing_Strategy ()
 Destructor.
 

Private Member Functions

int call_handle_output (TAO_Transport *transport, const TAO::Transport::Drain_Constraints &dc)
 

Additional Inherited Members

- Public Types inherited from TAO_Flushing_Strategy
enum  SCHEDULE_OUTPUT_RETURN { MUST_FLUSH = -2 }
 

Detailed Description

Implement a flushing strategy that blocks on write to flush.

Member Function Documentation

◆ call_handle_output()

int TAO_Block_Flushing_Strategy::call_handle_output ( TAO_Transport * transport,
const TAO::Transport::Drain_Constraints & dc )
private

◆ cancel_output()

int TAO_Block_Flushing_Strategy::cancel_output ( TAO_Transport * transport)
overridevirtual

Cancel all scheduled output for the transport argument.

Implements TAO_Flushing_Strategy.

◆ flush_message()

int TAO_Block_Flushing_Strategy::flush_message ( TAO_Transport * transport,
TAO_Queued_Message * msg,
ACE_Time_Value * max_wait_time )
overridevirtual

Wait until msg is sent out. Potentially other messages are flushed too, for example, because there are ahead in the queue.

Implements TAO_Flushing_Strategy.

◆ flush_transport()

int TAO_Block_Flushing_Strategy::flush_transport ( TAO_Transport * transport,
ACE_Time_Value * max_wait_time )
overridevirtual

Wait until the transport has no messages queued.

Implements TAO_Flushing_Strategy.

◆ schedule_output()

int TAO_Block_Flushing_Strategy::schedule_output ( TAO_Transport * transport)
overridevirtual

Schedule the transport argument to be flushed If -2 is returned then the caller must call one of the flush_* methods. If -1 is returned then there was an error. If 0 is returned then the flush was scheduled successfully.

Implements TAO_Flushing_Strategy.


The documentation for this class was generated from the following files: