summaryrefslogtreecommitdiff
path: root/tao/Strategies/NULL_Connection_Purging_Strategy.h
blob: 2da2ceb6e0e6d9dcf242c57407e4b2d11542f2b8 (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
43
44
45
46
47
48
49
50
51
52
// -*- C++ -*-

// ================================================================
/**
 *  @file   NULL_Connection_Purging_Strategy.h
 *
 *  $Id$
 *
 *  @author Chad Elliott (elliott_c@ociweb.com)
 */
// ================================================================

#ifndef TAO_NULL_PURGING_STRATEGY_H
#define TAO_NULL_PURGING_STRATEGY_H
#include /**/ "ace/pre.h"

#include "tao/Strategies/strategies_export.h"

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

#include "tao/Connection_Purging_Strategy.h"


TAO_BEGIN_VERSIONED_NAMESPACE_DECL

/**
 * @class TAO_NULL_Connection_Purging_Strategy
 *
 * @brief The null connection purging strategy
 *
 * This class does not do anything.
 */

class TAO_Strategies_Export TAO_NULL_Connection_Purging_Strategy: public TAO_Connection_Purging_Strategy
{
public:
  /// The constructor
  TAO_NULL_Connection_Purging_Strategy (int cache_maximum);

  /// Does nothing.
  virtual void update_item (TAO_Transport* transport);

  /// Returns -1 to signify no maximum
  virtual int cache_maximum (void) const;
};

TAO_END_VERSIONED_NAMESPACE_DECL

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