Template Struct watch

Struct Documentation

template<typename DerivedT, typename KeyT>
struct udho::watch

Public Types

typedef KeyT key_type
typedef watch<DerivedT, KeyT> self_type
typedef boost::posix_time::ptime time_point_type
typedef boost::posix_time::time_duration time_duration_type

Public Functions

watch(const key_type &key)
void release(const boost::system::error_code &e = boost::asio::error::operation_aborted)
time_point_type expiry() const
bool released() const
key_type key() const
bool valid() const
void expire_at(boost::posix_time::ptime time)

Public Members

key_type _key
time_point_type _expiry
bool _released