Package io.temporal.worker.tuning
Class SlotPermit
- java.lang.Object
-
- io.temporal.worker.tuning.SlotPermit
-
public final class SlotPermit extends java.lang.Object
This class is handed out by implementations ofSlotSupplier
. Permits are held until the tasks they are associated with (if any) are finished processing, or if the reservation is no longer needed. Your supplier implementation may store additional data in the permit, if desired.When
SlotSupplier.releaseSlot(SlotReleaseContext)
is called, the exact same instance of the permit is passed back to the supplier.
-
-
Field Summary
Fields Modifier and Type Field Description java.lang.Object
userData
-
Constructor Summary
Constructors Constructor Description SlotPermit()
SlotPermit(java.lang.Object userData)
-