mgmt: re-added expiration time to FaceStatus
refs #3381
Change-Id: I57d3166fc6ed52a54c442a80faffe7a7f4051e1d
diff --git a/daemon/face/face.hpp b/daemon/face/face.hpp
index d783dd0..2b56fec 100644
--- a/daemon/face/face.hpp
+++ b/daemon/face/face.hpp
@@ -159,6 +159,12 @@
*/
signal::Signal<Transport, FaceState/*old*/, FaceState/*new*/>& afterStateChange;
+ /** \return expiration time of the face
+ * \retval time::steady_clock::TimePoint::max() the face has an indefinite lifetime
+ */
+ time::steady_clock::TimePoint
+ getExpirationTime() const;
+
/** \brief request the face to be closed
*
* This operation is effective only if face is in UP or DOWN state,
@@ -266,6 +272,12 @@
return m_transport->getState();
}
+inline time::steady_clock::TimePoint
+Face::getExpirationTime() const
+{
+ return m_transport->getExpirationTime();
+}
+
inline void
Face::close()
{