// -*- C++ -*- // ========================================================================= /** * @file Timer_Handler.h * * $Id$ * * @desc Fires servant upcall after a specified period of delay * * @author Mayur Deshpande * */ // ========================================================================= #ifndef TIMER_HANDLER_H #define TIMER_HANDLER_H #include "ace/Timer_Queue.h" #include "TestS.h" class Timer_Handler : public ACE_Event_Handler { public: Timer_Handler (Test::AMH_RoundtripResponseHandler_ptr rh, Test::Timestamp send_time); virtual int handle_timeout (const ACE_Time_Value &, const void *); virtual int handle_close (ACE_HANDLE handle, ACE_Reactor_Mask mask); private: // Store the RH and the parameter that we send back to the client. // We create one Timer_Handler instance for each RH. Test::AMH_RoundtripResponseHandler_var rh_; Test::Timestamp send_time_; }; #endif /* TIMER_HANDLER_H */