Github user tillrohrmann commented on a diff in the pull request:
https://github.com/apache/flink/pull/2357#discussion_r74554448
--- Diff:
flink-runtime/src/main/java/org/apache/flink/runtime/rpc/RpcEndpoint.java ---
@@ -172,6 +173,13 @@ public void runAsync(Runnable runnable) {
return ((MainThreadExecutor) self).callAsync(callable, timeout);
}
+ /**
+ * Returns the class of the self gateway type.
+ *
+ * @return Class of the self gateway type
+ */
+ public abstract Class<C> getSelfGatewayType();
--- End diff --
Yes we can do this. I thought about this and then went for the solution
which saves some compute cycles. I can change it to the reflection alternative
if it's pre-mature optimization.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---