Package io.temporal.worker.tuning
Interface SlotReserveContext<SI extends SlotInfo>
-
public interface SlotReserveContext<SI extends SlotInfo>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description int
getNumIssuedSlots()
java.lang.String
getTaskQueue()
java.util.Map<SlotPermit,SI>
getUsedSlots()
java.lang.String
getWorkerBuildId()
java.lang.String
getWorkerIdentity()
-
-
-
Method Detail
-
getTaskQueue
java.lang.String getTaskQueue()
- Returns:
- the Task Queue for which this reservation request is associated.
-
getUsedSlots
java.util.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
java.lang.String getWorkerIdentity()
- Returns:
- The worker's identity that is associated with this reservation request.
-
getWorkerBuildId
java.lang.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.
-
-