Package io.ray.api.id

Class TaskId

All Implemented Interfaces:
Serializable

public class TaskId extends BaseId implements Serializable
Represents the id of a Ray task.
See Also:
Serialized Form
  • Field Details

  • Method Details

    • fromHexString

      public static TaskId fromHexString(String hex)
      Create a TaskId from a hex string.
    • fromByteBuffer

      public static TaskId fromByteBuffer(ByteBuffer bb)
      Creates a TaskId from a ByteBuffer.
    • fromBytes

      public static TaskId fromBytes(byte[] bytes)
      Creates a TaskId from given bytes.
    • size

      public int size()
      Description copied from class: BaseId
      Derived class should implement this function.
      Specified by:
      size in class BaseId
      Returns:
      The length of this id in bytes.