1 // ANNA - Anna is Not Nothingness Anymore //
3 // (c) Copyright 2005-2015 Eduardo Ramos Testillano & Francisco Ruiz Rayo //
5 // See project site at http://redmine.teslayout.com/projects/anna-suite //
6 // See accompanying file LICENSE or copy at http://www.teslayout.com/projects/public/anna.LICENSE //
9 #ifndef anna_ldap_internal_Timer_hpp
10 #define anna_ldap_internal_Timer_hpp
12 #include <anna/core/Allocator.hpp>
14 #include <anna/timex/Transaction.hpp>
23 class Timer : public timex::Transaction {
25 Response* getResponse() throw() { return reinterpret_cast <Response*>(getContext()); }
26 const Response* getResponse() const throw() { return reinterpret_cast <const Response*>(getContext()); }
28 std::string asString() const throw();
33 void setResponse(Response* response) throw() { setContext(response); }
34 void expire(timex::Engine*) throw(RuntimeException);
36 friend class ldap::TimerManager;
37 friend class Allocator<Timer>;