aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/grpc++/auth_metadata_processor.h
diff options
context:
space:
mode:
authorGravatar Julien Boeuf <jboeuf@google.com>2015-08-14 12:36:11 -0700
committerGravatar Julien Boeuf <jboeuf@google.com>2015-08-14 12:36:11 -0700
commitbf25bb01bbed3c3a58649424bc08fd187d147645 (patch)
tree761895aa4e23379066f7b5f060e764e406eaba37 /include/grpc++/auth_metadata_processor.h
parentd3920a28c6c082d5bc247471d566473375a4eb9f (diff)
Few improvements:
- Guarantee the lifetime of objects passed to the processor. - Add an option for implementers of the processor to make it non-blocking.
Diffstat (limited to 'include/grpc++/auth_metadata_processor.h')
-rw-r--r--include/grpc++/auth_metadata_processor.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/grpc++/auth_metadata_processor.h b/include/grpc++/auth_metadata_processor.h
index e077ec0c60..45030a6a45 100644
--- a/include/grpc++/auth_metadata_processor.h
+++ b/include/grpc++/auth_metadata_processor.h
@@ -45,6 +45,10 @@ class AuthMetadataProcessor {
public:
virtual ~AuthMetadataProcessor() {}
+ // If this method returns true, the Process function will be scheduled in
+ // a different thread as the one processing the call.
+ virtual bool IsBlocking() const { return true; }
+
// context is read/write: it contains the properties of the channel peer and
// it is the job of the Process method to augment it with properties derived
// from the passed-in auth_metadata.