forked from apache/flink
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FLINK-7387] [rpc] Require RpcEndpoints to directly implement RpcGate…
…ways This commit changes the relation between RpcEndpoints and RpcGateways. From now on, the RpcEndpoints have to implement the RpcGateways they want to support instead of coupling it loosely via a type parameter. In order to obtain self gateway a new method RpcEndpoint#getSelfGateway(Class) has been introduced. This method can be used to obtain the RpcGateway type at run time to talk to the RpcEndpoint asynchronously. All existing RpcEndpoints have been adapted to the new model. This basically means that they now return a CompletableFuture<X> instead of X. Add RpcEndpointTest This closes apache#4498.
- Loading branch information
1 parent
9f790d3
commit d95d20e
Showing
35 changed files
with
887 additions
and
1,120 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.