TAO
2.3.3
|
Strategy for waiting for the reply. More...
#include <Wait_Strategy.h>
Public Member Functions | |
TAO_Wait_Strategy (TAO_Transport *transport) | |
Constructor. More... | |
virtual | ~TAO_Wait_Strategy (void) |
Destructor. More... | |
virtual int | sending_request (TAO_ORB_Core *orb_core, TAO_Message_Semantics msg_semantics) |
virtual void | finished_request () |
virtual int | wait (ACE_Time_Value *max_wait_time, TAO_Synch_Reply_Dispatcher &rd)=0 |
virtual int | register_handler (void)=0 |
virtual bool | non_blocking (void) const =0 |
virtual bool | can_process_upcalls (void) const =0 |
virtual int | defer_upcall (ACE_Event_Handler *) |
bool | is_registered (void) const |
Get method for the flag. More... | |
void | is_registered (bool flag) |
Set method for the flag. More... | |
Protected Attributes | |
TAO_Transport * | transport_ |
Transport object. More... | |
bool | is_registered_ |
Strategy for waiting for the reply.
|
explicit |
Constructor.
|
virtual |
Destructor.
|
pure virtual |
Flag that indicates whether we can process requests while waiting for the reply. This flag is to check whether the thread can process upcalls while waiting for the reply. Some wait strategies, like Wait_On_LF_No_Upcall does not allow the client threads to process requests while waiting for the reply.
Implemented in TAO_Wait_On_Leader_Follower, TAO_Wait_On_Read, TAO::Wait_On_LF_No_Upcall, and TAO_Wait_On_Reactor.
|
virtual |
Method to support deffering an upcall event till later in cases where can_process_upcalls() returns false. Some wait strategies like Wait_On_LF_No_Upcall allow an event to be deferred at the Leader_Follower which resumes the upcall at an opportune moment (when a new leader thread is activated).
Reimplemented in TAO::Wait_On_LF_No_Upcall.
|
virtual |
Reimplemented in TAO_Wait_On_Read.
bool TAO_Wait_Strategy::is_registered | ( | void | ) | const |
Get method for the flag.
void TAO_Wait_Strategy::is_registered | ( | bool | flag | ) |
Set method for the flag.
|
pure virtual |
Returns a value to indicate whether the transport needs to set the socket on which it is waiting to non-blocking mode or not.
Implemented in TAO_Wait_On_Leader_Follower, TAO_Wait_On_Read, and TAO_Wait_On_Reactor.
|
pure virtual |
Register the handler needs with the reactor provided that it makes sense for the strategy.
Implemented in TAO_Wait_On_Leader_Follower, TAO_Wait_On_Read, and TAO_Wait_On_Reactor.
|
virtual |
The user is going to send a request, prepare any internal variables because the reply may arrive before the user calls wait.
Reimplemented in TAO_Wait_On_Leader_Follower, and TAO_Wait_On_Read.
|
pure virtual |
Base class virtual method. Wait till the reply_received
flag is true or the time expires.
Implemented in TAO_Wait_On_Leader_Follower, TAO::Wait_On_LF_No_Upcall, TAO_Wait_On_Read, and TAO_Wait_On_Reactor.
|
protected |
Flag to indicate whether the service handler that created the above transport has been registered with the reactor or not. The default is false.
|
protected |
Transport object.