Class WorkerSlotsInfo
- Namespace
- Temporalio.Api.Worker.V1
- Assembly
- Temporalio.dll
public sealed class WorkerSlotsInfo : IMessage<WorkerSlotsInfo>, IEquatable<WorkerSlotsInfo>, IDeepCloneable<WorkerSlotsInfo>, IBufferMessage, IMessage
- Inheritance
-
WorkerSlotsInfo
- Implements
-
IMessage<WorkerSlotsInfo>IDeepCloneable<WorkerSlotsInfo>IBufferMessageIMessage
- Inherited Members
Constructors
WorkerSlotsInfo()
public WorkerSlotsInfo()
WorkerSlotsInfo(WorkerSlotsInfo)
public WorkerSlotsInfo(WorkerSlotsInfo other)
Parameters
other
WorkerSlotsInfo
Fields
CurrentAvailableSlotsFieldNumber
Field number for the "current_available_slots" field.
public const int CurrentAvailableSlotsFieldNumber = 1
Field Value
CurrentUsedSlotsFieldNumber
Field number for the "current_used_slots" field.
public const int CurrentUsedSlotsFieldNumber = 2
Field Value
LastIntervalFailureTasksFieldNumber
Field number for the "last_interval_failure_tasks" field.
public const int LastIntervalFailureTasksFieldNumber = 7
Field Value
LastIntervalProcessedTasksFieldNumber
Field number for the "last_interval_processed_tasks" field.
public const int LastIntervalProcessedTasksFieldNumber = 6
Field Value
SlotSupplierKindFieldNumber
Field number for the "slot_supplier_kind" field.
public const int SlotSupplierKindFieldNumber = 3
Field Value
TotalFailedTasksFieldNumber
Field number for the "total_failed_tasks" field.
public const int TotalFailedTasksFieldNumber = 5
Field Value
TotalProcessedTasksFieldNumber
Field number for the "total_processed_tasks" field.
public const int TotalProcessedTasksFieldNumber = 4
Field Value
Properties
CurrentAvailableSlots
Number of slots available for the worker to specific tasks. May be -1 if the upper bound is not known.
public int CurrentAvailableSlots { get; set; }
Property Value
CurrentUsedSlots
Number of slots used by the worker for specific tasks.
public int CurrentUsedSlots { get; set; }
Property Value
Descriptor
public static MessageDescriptor Descriptor { get; }
Property Value
- MessageDescriptor
LastIntervalFailureTasks
Number of failed tasks processed since the last heartbeat from the worker.
public int LastIntervalFailureTasks { get; set; }
Property Value
LastIntervalProcessedTasks
Number of tasks processed in since the last heartbeat from the worker. This is a cumulative counter, and it is reset to 0 each time the worker sends a heartbeat. Contains both successful and failed tasks.
public int LastIntervalProcessedTasks { get; set; }
Property Value
Parser
public static MessageParser<WorkerSlotsInfo> Parser { get; }
Property Value
- MessageParser<WorkerSlotsInfo>
SlotSupplierKind
Kind of the slot supplier, which is used to determine how the slots are allocated. Possible values: "Fixed | ResourceBased | Custom String"
public string SlotSupplierKind { get; set; }
Property Value
TotalFailedTasks
Total number of failed tasks processed by the worker so far.
public int TotalFailedTasks { get; set; }
Property Value
TotalProcessedTasks
Total number of tasks processed (completed both successfully and unsuccesfully, or any other way) by the worker since the worker started. This is a cumulative counter.
public int TotalProcessedTasks { get; set; }
Property Value
Methods
CalculateSize()
Calculates the size of this message in Protocol Buffer wire format, in bytes.
public int CalculateSize()
Returns
- int
The number of bytes required to write this message to a coded output stream.
Clone()
Creates a deep clone of this object.
public WorkerSlotsInfo Clone()
Returns
- WorkerSlotsInfo
A deep clone of this object.
Equals(object)
Determines whether the specified object is equal to the current object.
public override bool Equals(object other)
Parameters
other
object
Returns
Equals(WorkerSlotsInfo)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(WorkerSlotsInfo other)
Parameters
other
WorkerSlotsInfoAn object to compare with this object.
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
MergeFrom(CodedInputStream)
Merges the data from the specified coded input stream with the current message.
public void MergeFrom(CodedInputStream input)
Parameters
input
CodedInputStream
Remarks
See the user guide for precise merge semantics.
MergeFrom(WorkerSlotsInfo)
Merges the given message into this one.
public void MergeFrom(WorkerSlotsInfo other)
Parameters
other
WorkerSlotsInfo
Remarks
See the user guide for precise merge semantics.
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
WriteTo(CodedOutputStream)
Writes the data to the given coded output stream.
public void WriteTo(CodedOutputStream output)
Parameters
output
CodedOutputStreamCoded output stream to write the data to. Must not be null.