Interface SlotReserveContext<SI extends SlotInfo>


public interface SlotReserveContext<SI extends SlotInfo>
  • Method Details

    • getTaskQueue

      String getTaskQueue()
      Returns:
      the Task Queue for which this reservation request is associated.
    • getUsedSlots

      Map<SlotPermit,SI> getUsedSlots()
      Returns:
      A read-only & safe for concurrent access mapping of slot permits to the information associated with the in-use slot. This map is changed internally any time new slots are used.
    • getWorkerIdentity

      String getWorkerIdentity()
      Returns:
      The worker's identity that is associated with this reservation request.
    • getWorkerBuildId

      String getWorkerBuildId()
      Returns:
      The worker's build ID that is associated with this reservation request.
    • getNumIssuedSlots

      int getNumIssuedSlots()
      Returns:
      The number of currently outstanding slot permits of this type, whether used or not.