szetszwo commented on a change in pull request #364:
URL: https://github.com/apache/incubator-ratis/pull/364#discussion_r546465118
##########
File path:
ratis-client/src/main/java/org/apache/ratis/client/api/DataStreamApi.java
##########
@@ -44,4 +48,7 @@ default DataStreamOutput stream() {
/** Create a stream by providing a customized header message. */
DataStreamOutput stream(ByteBuffer headerMessage);
+
+ /** Create a stream by providing a customized header message and route
table. */
+ DataStreamOutput stream(ByteBuffer headerMessage, Map<RaftPeerId,
List<RaftPeerId>> routingTable);
Review comment:
That is a good point. We should add a toProto() method to the interface.
```
public interface RoutingTable {
Set<RaftPeerId> getSuccessors(RaftPeerId peerId);
RoutingTableProto toProto();
}
```
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]