3 //=============================================================================
5 * @file Leader_Follower_Flushing_Strategy.h
7 * @author Carlos O'Ryan <coryan@uci.edu>
9 //=============================================================================
11 #ifndef TAO_LEADER_FOLLOWER_FLUSHING_STRATEGY_H
12 #define TAO_LEADER_FOLLOWER_FLUSHING_STRATEGY_H
14 #include /**/ "ace/pre.h"
16 #include "tao/Flushing_Strategy.h"
18 #if !defined (ACE_LACKS_PRAGMA_ONCE)
20 #endif /* ACE_LACKS_PRAGMA_ONCE */
22 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
25 * @class TAO_Leader_Follower_Flushing_Strategy
27 * @brief Implement a flushing strategy that uses the Leader/Follower
30 class TAO_Leader_Follower_Flushing_Strategy
31 : public TAO_Flushing_Strategy
34 virtual int schedule_output (TAO_Transport
*transport
);
35 virtual int cancel_output (TAO_Transport
*transport
);
36 virtual int flush_message (TAO_Transport
*transport
,
37 TAO_Queued_Message
*msg
,
38 ACE_Time_Value
*max_wait_time
);
39 virtual int flush_transport (TAO_Transport
*transport
, ACE_Time_Value
*max_wait_time
);
42 TAO_END_VERSIONED_NAMESPACE_DECL
44 #include /**/ "ace/post.h"
46 #endif /* TAO_LEADER_FOLLOWER_FLUSHING_STRATEGY_H */