TAO  2.2.3
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Private Types | Private Attributes | List of all members
TAO::Invocation_Retry_State Class Reference

Maintains state of invocation retries. More...

#include <Invocation_Retry_State.h>

Collaboration diagram for TAO::Invocation_Retry_State:
Collaboration graph

Public Member Functions

 Invocation_Retry_State (TAO_Stub &stub)
 
 ~Invocation_Retry_State ()
 
bool forward_on_exception_limit_used () const
 
bool forward_on_exception_increment (const int ef)
 
bool forward_on_reply_closed_increment ()
 
void next_profile_retry (TAO_Stub &stub) const
 
void sleep_at_starting_profile (TAO_Stub &stub) const
 
void sleep () const
 

Private Types

typedef ACE_Array_Map< int, int > Ex_Count_Map
 

Private Attributes

Ex_Count_Map ex_count_map_
 
int forward_on_reply_closed_count_
 
Invocation_Retry_Params retry_params_
 
bool forward_on_exception_limit_used_
 

Detailed Description

Maintains state of invocation retries.

Member Typedef Documentation

typedef ACE_Array_Map<int, int> TAO::Invocation_Retry_State::Ex_Count_Map
private

Constructor & Destructor Documentation

TAO::Invocation_Retry_State::Invocation_Retry_State ( TAO_Stub stub)
TAO::Invocation_Retry_State::~Invocation_Retry_State ( )

Member Function Documentation

bool TAO::Invocation_Retry_State::forward_on_exception_increment ( const int  ef)

Attempt to increment the count of profile forwards.

Returns
false if forward on exception is not being used or the limit has been reached.
bool TAO::Invocation_Retry_State::forward_on_exception_limit_used ( ) const

Answer if any profile forward on exception limit parameter is used.

bool TAO::Invocation_Retry_State::forward_on_reply_closed_increment ( )

Attempt to increment the count of retries when a server connection is seen as closed during reply.

void TAO::Invocation_Retry_State::next_profile_retry ( TAO_Stub stub) const

Increment to next profile in preparation to retry using that profile. If the next profile is the starting base profile then also call sleep ().

See Also
TAO_Stub::next_profile_retry()
void TAO::Invocation_Retry_State::sleep ( ) const

Sleep according to the delay value in Invocation_Retry_Params.

void TAO::Invocation_Retry_State::sleep_at_starting_profile ( TAO_Stub stub) const

Sleep if profile is the starting base profile.

Member Data Documentation

Ex_Count_Map TAO::Invocation_Retry_State::ex_count_map_
private
bool TAO::Invocation_Retry_State::forward_on_exception_limit_used_
private
int TAO::Invocation_Retry_State::forward_on_reply_closed_count_
private
Invocation_Retry_Params TAO::Invocation_Retry_State::retry_params_
private

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