public class FlightEndpoint extends Object
Constructor and Description |
---|
FlightEndpoint(Ticket ticket,
Instant expirationTime,
Location... locations)
Constructs a new endpoint with an expiration time.
|
FlightEndpoint(Ticket ticket,
Location... locations)
Constructs a new endpoint with no expiration time.
|
Modifier and Type | Method and Description |
---|---|
static FlightEndpoint |
deserialize(ByteBuffer serialized)
Parse the serialized form of this protocol message.
|
boolean |
equals(Object o) |
Optional<Instant> |
getExpirationTime() |
List<Location> |
getLocations() |
Ticket |
getTicket() |
int |
hashCode() |
ByteBuffer |
serialize()
Get the serialized form of this protocol message.
|
String |
toString() |
public FlightEndpoint(Ticket ticket, Location... locations)
ticket
- A ticket that describe the key of a data stream.locations
- The possible locations the stream can be retrieved from.public Ticket getTicket()
public ByteBuffer serialize()
Intended to help interoperability by allowing non-Flight services to still return Flight types.
public static FlightEndpoint deserialize(ByteBuffer serialized) throws IOException, URISyntaxException
Intended to help interoperability by allowing Flight clients to obtain stream info from non-Flight services.
serialized
- The serialized form of the message, as returned by serialize()
.IOException
- if the serialized form is invalid.URISyntaxException
- if the serialized form contains an unsupported URI format.Copyright © 2023 The Apache Software Foundation. All rights reserved.