aiguofer commented on code in PR #38331:
URL: https://github.com/apache/arrow/pull/38331#discussion_r1367516482
##########
java/flight/flight-core/src/main/java/org/apache/arrow/flight/FlightEndpoint.java:
##########
@@ -54,13 +56,27 @@ public FlightEndpoint(Ticket ticket, Location... locations)
{
* Constructs a new endpoint with an expiration time.
*
* @param ticket A ticket that describe the key of a data stream.
+ * @param expirationTime (optional) When this endpoint expires.
* @param locations The possible locations the stream can be retrieved from.
*/
public FlightEndpoint(Ticket ticket, Instant expirationTime, Location...
locations) {
+ this(ticket, expirationTime, "", locations);
+ }
+
+ /**
+ * Constructs a new endpoint with an expiration time.
+ *
+ * @param ticket A ticket that describe the key of a data stream.
+ * @param expirationTime (optional) When this endpoint expires.
+ * @param appMetadata (optional) Application metadata associated with this
endpoint.
+ * @param locations The possible locations the stream can be retrieved from.
+ */
+ public FlightEndpoint(Ticket ticket, Instant expirationTime, String
appMetadata, Location... locations) {
Review Comment:
Changed to private and added builder.
--
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]