Revert "Minor modernization of DynamicAny code"
[ACE_TAO.git] / TAO / tao / Invocation_Retry_Params.h
blobb24d30c79807f64a27653451c3afc42705a11c62
1 /* -*- C++ -*- */
2 //=============================================================================
3 /**
4 * @file Invocation_Retry_Params.h
6 * @author Byron Harris (harrisb@ociweb.com)
7 */
8 //=============================================================================
10 #ifndef TAO_INVOCATION_RETRY_PARAMS_H
11 #define TAO_INVOCATION_RETRY_PARAMS_H
13 #include "tao/orbconf.h"
15 #include "ace/Array_Map.h"
16 #include "ace/Time_Value.h"
18 TAO_BEGIN_VERSIONED_NAMESPACE_DECL
20 namespace TAO
22 /**
23 * @struct Invocation_Retry_Params
25 * @brief Contains the invocation retry parameters used when encountering
26 * CORBA exceptions.
27 * The parameters can be specified using either the Client_Strategy_Factory
28 * service given in the service configuration file or through the command line.
29 * Any command line parameter overrides the corresponding option in the service
30 * configurator file.
32 struct Invocation_Retry_Params
34 Invocation_Retry_Params();
36 typedef ACE_Array_Map<int, int> exception_limit_map_type;
38 /**
39 * The maximum number of retry attempts per exception type
40 * when exceptions are encountered. The profiles are
41 * cycled through during each attempt.
43 exception_limit_map_type forward_on_exception_limit_;
45 /**
46 * The maximum number of times to retry a an invocation
47 * if the the connection to the server is closed when
48 * trying to get a reply.
50 int forward_on_reply_closed_limit_;
52 /**
53 * The delay to use between cycles of base and forward profiles.
55 ACE_Time_Value init_retry_delay_;
59 TAO_END_VERSIONED_NAMESPACE_DECL
61 #endif /* TAO_INVOCATION_RETRY_PARAMS_H*/