Package io.ray.api.id

Class PlacementGroupId

java.lang.Object
io.ray.api.id.BaseId
io.ray.api.id.PlacementGroupId
All Implemented Interfaces:
Serializable

public class PlacementGroupId extends BaseId implements Serializable
Represents the id of a placement group.
See Also:
Serialized Form
  • Field Details

  • Method Details

    • fromByteBuffer

      public static PlacementGroupId fromByteBuffer(ByteBuffer bb)
      Creates a PlacementGroupId from the given ByteBuffer.
    • fromBytes

      public static PlacementGroupId fromBytes(byte[] bytes)
      Create a PlacementGroupId instance according to the given bytes.
    • fromRandom

      public static PlacementGroupId fromRandom()
      Generate an PlacementGroupId with random value. Used for local mode and test only.
    • 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.