summaryrefslogtreecommitdiff
path: root/TAO/tao/Reactive_Flushing_Strategy.h
blob: 66b78566556ca274d485306fc31f0ffd1942cac8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
// -*- C++ -*-

//=============================================================================
/**
 *  @file Reactive_Flushing_Strategy.h
 *
 *  $Id$
 *
 *  @author Carlos O'Ryan <coryan@uci.edu>
 */
//=============================================================================

#ifndef TAO_REACTIVE_FLUSHING_STRATEGY_H
#define TAO_REACTIVE_FLUSHING_STRATEGY_H

#include /**/ "ace/pre.h"

#include "Flushing_Strategy.h"

#if !defined (ACE_LACKS_PRAGMA_ONCE)
# pragma once
#endif /* ACE_LACKS_PRAGMA_ONCE */

/**
 * @class TAO_Reactive_Flushing_Strategy
 *
 * @brief Implement a flushing strategy that uses the reactor.
 */
class TAO_Export TAO_Reactive_Flushing_Strategy : public TAO_Flushing_Strategy
{
public:
  virtual int schedule_output (TAO_Transport *transport);
  virtual int cancel_output (TAO_Transport *transport);
  virtual int flush_message (TAO_Transport *transport,
                             TAO_Queued_Message *msg,
                             ACE_Time_Value *max_wait_time);
  virtual int flush_transport (TAO_Transport *transport);
};

#include /**/ "ace/post.h"

#endif  /* TAO_REACTIVE_FLUSHING_STRATEGY_H */