Class SlotReserveContext
- Namespace
- Temporalio.Worker.Tuning
- Assembly
- Temporalio.dll
Context for reserving a slot from a CustomSlotSupplier.
public record SlotReserveContext : IEquatable<SlotReserveContext>
- Inheritance
-
SlotReserveContext
- Implements
- Inherited Members
Remarks
WARNING: Custom slot suppliers are currently experimental.
Constructors
SlotReserveContext(SlotType, string, string, string, bool)
Context for reserving a slot from a CustomSlotSupplier.
public SlotReserveContext(SlotType SlotType, string TaskQueue, string WorkerIdentity, string WorkerBuildId, bool IsSticky)
Parameters
SlotType
SlotTypeThe type of slot trying to be reserved.
TaskQueue
stringThe name of the task queue for which this reservation request is associated.
WorkerIdentity
stringThe identity of the worker that is requesting the reservation.
WorkerBuildId
stringThe build id of the worker that is requesting the reservation.
IsSticky
boolTrue iff this is a reservation for a sticky poll for a workflow task.
Remarks
WARNING: Custom slot suppliers are currently experimental.
Properties
IsSticky
True iff this is a reservation for a sticky poll for a workflow task.
public bool IsSticky { get; init; }
Property Value
SlotType
The type of slot trying to be reserved.
public SlotType SlotType { get; init; }
Property Value
TaskQueue
The name of the task queue for which this reservation request is associated.
public string TaskQueue { get; init; }
Property Value
WorkerBuildId
The build id of the worker that is requesting the reservation.
public string WorkerBuildId { get; init; }
Property Value
WorkerIdentity
The identity of the worker that is requesting the reservation.
public string WorkerIdentity { get; init; }