Package io.temporal.worker.tuning
Class SlotReleaseReason
- java.lang.Object
-
- io.temporal.worker.tuning.SlotReleaseReason
-
- Direct Known Subclasses:
SlotReleaseReason.Error,SlotReleaseReason.NeverUsed,SlotReleaseReason.TaskComplete,SlotReleaseReason.WillRetry
public abstract class SlotReleaseReason extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSlotReleaseReason.ErrorThe slot was released because some error was encountered before the slot could be used to actually process the task.static classSlotReleaseReason.NeverUsedThe slot was released because it was never needed.static classSlotReleaseReason.TaskCompleteThe slot was released because the task was completed (regardless of status).static classSlotReleaseReason.WillRetryThe slot was released because the task will be retried.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static SlotReleaseReasonerror(java.lang.Exception exception)java.lang.ExceptiongetException()booleanisError()static SlotReleaseReasonneverUsed()static SlotReleaseReasontaskComplete()static SlotReleaseReasonwillRetry()
-
-
-
Method Detail
-
taskComplete
public static SlotReleaseReason taskComplete()
-
willRetry
public static SlotReleaseReason willRetry()
-
neverUsed
public static SlotReleaseReason neverUsed()
-
error
public static SlotReleaseReason error(java.lang.Exception exception)
-
isError
public boolean isError()
-
getException
@Nullable public java.lang.Exception getException()
- Returns:
- the exception that caused the slot to be released, if this is a reason of type
SlotReleaseReason.Error.
-
-