aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar yangg <yangg@google.com>2015-01-06 10:16:15 -0800
committerGravatar Nicolas Noble <nnoble@google.com>2015-01-06 17:45:46 -0800
commited5e7e006b1a60ef01a0ee1db144e959436b53d7 (patch)
tree4166d8504d804d00ff96e8ce47ae4e6ecf7e2152 /include
parentc87b1c533f84a9bed94143908b00b0cc498cfda5 (diff)
Add deadline API on server side.
Change on 2015/01/06 by yangg <yangg@google.com> ------------- Created by MOE: http://code.google.com/p/moe-java MOE_MIGRATED_REVID=83351442
Diffstat (limited to 'include')
-rw-r--r--include/grpc++/server_context.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/grpc++/server_context.h b/include/grpc++/server_context.h
index 9a14faa7fa..47fd6cf1c8 100644
--- a/include/grpc++/server_context.h
+++ b/include/grpc++/server_context.h
@@ -34,12 +34,16 @@
#ifndef __GRPCPP_SERVER_CONTEXT_H_
#define __GRPCPP_SERVER_CONTEXT_H_
+#include <chrono>
+
namespace grpc {
// Interface of server side rpc context.
class ServerContext {
public:
virtual ~ServerContext() {}
+
+ virtual std::chrono::system_clock::time_point absolute_deadline() const = 0;
};
} // namespace grpc