zentol commented on code in PR #24292:
URL: https://github.com/apache/flink/pull/24292#discussion_r1489259263
##########
flink-rpc/flink-rpc-core/src/main/java/org/apache/flink/runtime/rpc/RpcGateway.java:
##########
@@ -34,4 +34,16 @@ public interface RpcGateway {
* @return Fully qualified hostname under which the associated rpc
endpoint is reachable
*/
String getHostname();
+
+ /**
+ * Perform optional steps before handling any messages or performing
service actions (e.g.
+ * start/stop).
+ */
+ default void beforeInvocation() {}
Review Comment:
yes, (if this is handled in the PekkoRpcActor). Although maybe not runnables
but just a Map<String, String>? Not sure if we _really_ want to open us up to
running arbitrary things before/after just yet 🤔
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]