Class SlotSupplierFuture

java.lang.Object
java.util.concurrent.CompletableFuture<SlotPermit>
io.temporal.worker.tuning.SlotSupplierFuture
All Implemented Interfaces:
CompletionStage<SlotPermit>, Future<SlotPermit>

public abstract class SlotSupplierFuture extends CompletableFuture<SlotPermit>
Represents a future that will be completed with a SlotPermit when a slot is available.

This class exists to provide a reliable cancellation mechanism, since CompletableFuture does not provide cancellations that properly propagate up the chain.