endpoint_state: const-qualify functions

Signed-off-by: Duarte Nunes <duarte@scylladb.com>
This commit is contained in:
Duarte Nunes
2017-10-10 13:28:21 +01:00
parent 198b1b76b5
commit bc976b4773

View File

@@ -129,7 +129,7 @@ public:
/**
* @return System.nanoTime() when state was updated last time.
*/
clk::time_point get_update_timestamp() {
clk::time_point get_update_timestamp() const {
return _update_timestamp;
}
@@ -137,7 +137,7 @@ public:
_update_timestamp = clk::now();
}
bool is_alive() {
bool is_alive() const {
return _is_alive;
}
@@ -149,7 +149,7 @@ public:
_is_alive = false;
}
bool is_shutdown() {
bool is_shutdown() const {
auto app_state = get_application_state(application_state::STATUS);
if (!app_state) {
return false;