TAO 4.0.0
Loading...
Searching...
No Matches
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
[legend]

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

◆ Ex_Count_Map

Constructor & Destructor Documentation

◆ Invocation_Retry_State()

TAO::Invocation_Retry_State::Invocation_Retry_State ( TAO_Stub & stub)

◆ ~Invocation_Retry_State()

TAO::Invocation_Retry_State::~Invocation_Retry_State ( )

Member Function Documentation

◆ forward_on_exception_increment()

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.

◆ forward_on_exception_limit_used()

bool TAO::Invocation_Retry_State::forward_on_exception_limit_used ( ) const

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

◆ forward_on_reply_closed_increment()

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.

◆ next_profile_retry()

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()

◆ sleep()

void TAO::Invocation_Retry_State::sleep ( ) const

Sleep according to the delay value in Invocation_Retry_Params.

◆ sleep_at_starting_profile()

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_

Ex_Count_Map TAO::Invocation_Retry_State::ex_count_map_
private

◆ forward_on_exception_limit_used_

bool TAO::Invocation_Retry_State::forward_on_exception_limit_used_
private

◆ forward_on_reply_closed_count_

int TAO::Invocation_Retry_State::forward_on_reply_closed_count_
private

◆ retry_params_

Invocation_Retry_Params TAO::Invocation_Retry_State::retry_params_
private

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