Class SlotReleaseReason
java.lang.Object
io.temporal.worker.tuning.SlotReleaseReason
- Direct Known Subclasses:
SlotReleaseReason.Error,SlotReleaseReason.NeverUsed,SlotReleaseReason.TaskComplete,SlotReleaseReason.WillRetry
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classThe slot was released because some error was encountered before the slot could be used to actually process the task.static classThe slot was released because it was never needed.static classThe slot was released because the task was completed (regardless of status).static classThe slot was released because the task will be retried. -
Method Summary
Modifier and TypeMethodDescriptionstatic SlotReleaseReasonbooleanisError()static SlotReleaseReasonstatic SlotReleaseReasonstatic SlotReleaseReason
-
Method Details
-
taskComplete
-
willRetry
-
neverUsed
-
error
-
isError
public boolean isError() -
getException
- Returns:
- the exception that caused the slot to be released, if this is a reason of type
SlotReleaseReason.Error.
-