Class TrackingSlotSupplier<SI extends SlotInfo>
java.lang.Object
io.temporal.internal.worker.TrackingSlotSupplier<SI>
- Type Parameters:
SI- The slot info type
Wraps a slot supplier and supplements it with additional tracking information that is useful to
provide to all implementations. This type is used internally rather than
SlotSupplier
directly.-
Constructor Summary
ConstructorsConstructorDescriptionTrackingSlotSupplier(SlotSupplier<SI> inner, com.uber.m3.tally.Scope metricsScope) -
Method Summary
Modifier and TypeMethodDescriptionintintvoidmarkSlotUsed(SI slotInfo, SlotPermit permit) voidreleaseSlot(SlotReleaseReason reason, SlotPermit permit)
-
Constructor Details
-
TrackingSlotSupplier
-
-
Method Details
-
getSupplierKind
-
getUsedSlotCount
public int getUsedSlotCount() -
reserveSlot
-
tryReserveSlot
-
markSlotUsed
-
releaseSlot
-
maximumSlots
-
getIssuedSlots
public int getIssuedSlots()
-