Merge pull request #1551 from DOCGroup/plm_jira_333
[ACE_TAO.git] / TAO / examples / AMH / Sink_Server / Timer_Handler.h
blob850c54130013809a5660de3e81cc679f8f154ada
1 // -*- C++ -*-
3 // =========================================================================
4 /**
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"
17 #include "TestS.h"
19 class Timer_Handler : public ACE_Event_Handler
21 public:
22 Timer_Handler (Test::AMH_RoundtripResponseHandler_ptr rh,
23 Test::Timestamp send_time);
25 virtual int handle_timeout (const ACE_Time_Value &,
26 const void *);
28 virtual int handle_close (ACE_HANDLE handle,
29 ACE_Reactor_Mask mask);
31 private:
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 */