3 // =========================================================================
5 * @file Timer_Handler.h
7 * @desc Fires servant upcall after a specified period of delay
9 * @author Mayur Deshpande <mayur@ics.uci.edu>
11 // =========================================================================
13 #ifndef TIMER_HANDLER_H
14 #define TIMER_HANDLER_H
16 #include "ace/Timer_Queue.h"
19 class Timer_Handler
: public ACE_Event_Handler
22 Timer_Handler (Test::AMH_RoundtripResponseHandler_ptr rh
,
23 Test::Timestamp send_time
);
25 virtual int handle_timeout (const ACE_Time_Value
&,
28 virtual int handle_close (ACE_HANDLE handle
,
29 ACE_Reactor_Mask mask
);
32 // Store the RH and the parameter that we send back to the client.
33 // We create one Timer_Handler instance for each RH.
34 Test::AMH_RoundtripResponseHandler_var rh_
;
35 Test::Timestamp send_time_
;
38 #endif /* TIMER_HANDLER_H */