Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F32509037
D4003.1767093835.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D4003.1767093835.diff
View Options
diff --git a/services/lib/src/BaseReactor.h b/services/lib/src/BaseReactor.h
--- a/services/lib/src/BaseReactor.h
+++ b/services/lib/src/BaseReactor.h
@@ -12,10 +12,20 @@
class BaseReactor {
public:
+ // Returns a status holder that consists of:
+ // - reactor's state,
+ // - status of the operation that's being performed by this reactor.
virtual std::shared_ptr<ReactorStatusHolder> getStatusHolder() = 0;
+ // Should be called when we plan to terminate the connection for some reason
+ // either with a success or a failure status.
+ // Receives a status indicating a result of the reactor's operation.
virtual void terminate(const grpc::Status &status) = 0;
+ // Validates current values of the reactor's fields.
virtual void validate() = 0;
+ // Should be called when `OnDone` is called. gRPC calls `OnDone` when there
+ // are not going to be more rpc operations.
virtual void doneCallback() = 0;
+ // Should be called when `terminate` is called.
virtual void terminateCallback() = 0;
};
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Tue, Dec 30, 11:23 AM (6 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
5867080
Default Alt Text
D4003.1767093835.diff (1 KB)
Attached To
Mode
D4003: [services] Document base reactor
Attached
Detach File
Event Timeline
Log In to Comment