Package io.deephaven.proto.util
Class SharedTicketHelper
java.lang.Object
io.deephaven.proto.util.SharedTicketHelper
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic byte[]
idToBytes
(byte[] sharedId) Convenience method to create the flight ticket bytes for the given shared identifier.idToPath
(byte[] sharedId) Convenience method to create the flight descriptor path for the given shared identifier.static String
toReadableString
(byte[] ticket) Convenience method to decode the shared ticket bytes into a human-readable description.
-
Field Details
-
TICKET_PREFIX
public static final char TICKET_PREFIX- See Also:
-
FLIGHT_DESCRIPTOR_ROUTE
- See Also:
-
-
Constructor Details
-
SharedTicketHelper
public SharedTicketHelper()
-
-
Method Details
-
idToPath
Convenience method to create the flight descriptor path for the given shared identifier.- Parameters:
sharedId
- the shared identifier- Returns:
- the path
-
idToBytes
public static byte[] idToBytes(byte[] sharedId) Convenience method to create the flight ticket bytes for the given shared identifier.- Parameters:
sharedId
- the shared identifier- Returns:
- the ticket bytes
-
toReadableString
Convenience method to decode the shared ticket bytes into a human-readable description.- Parameters:
ticket
- the ticket bytes- Returns:
- the human-readable description
-