Class SlotPermit


  • public final class SlotPermit
    extends java.lang.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 Summary

      Fields 
      Modifier and Type Field Description
      java.lang.Object userData  
    • Constructor Summary

      Constructors 
      Constructor Description
      SlotPermit()  
      SlotPermit​(java.lang.Object userData)  
    • Method Summary

      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • userData

        public final java.lang.Object userData
    • Constructor Detail

      • SlotPermit

        public SlotPermit()
      • SlotPermit

        public SlotPermit​(java.lang.Object userData)