flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From StephanEwen <...@git.apache.org>
Subject [GitHub] flink pull request #2357: [FLINK-4362] [rpc] Auto generate rpc gateways via ...
Date Thu, 11 Aug 2016 15:39:24 GMT
Github user StephanEwen commented on a diff in the pull request:

    https://github.com/apache/flink/pull/2357#discussion_r74446628
  
    --- 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 --
    
    I think one can find this out via reflection. The parameter is stored in the class signature.


---
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 infrastructure@apache.org or file a JIRA ticket
with INFRA.
---

Mime
View raw message