Class SlotPermit

java.lang.Object
io.temporal.worker.tuning.SlotPermit

public final class SlotPermit extends Object
This class is handed out by implementations of SlotSupplier. 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 Details

    • userData

      public final Object userData
  • Constructor Details

    • SlotPermit

      public SlotPermit()
    • SlotPermit

      public SlotPermit(Object userData)