Package io.temporal.worker.tuning
Class SlotReleaseReason.Error
- java.lang.Object
-
- io.temporal.worker.tuning.SlotReleaseReason
-
- io.temporal.worker.tuning.SlotReleaseReason.Error
-
- Enclosing class:
- SlotReleaseReason
public static class SlotReleaseReason.Error extends SlotReleaseReason
The slot was released because some error was encountered before the slot could be used to actually process the task.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class io.temporal.worker.tuning.SlotReleaseReason
SlotReleaseReason.Error, SlotReleaseReason.NeverUsed, SlotReleaseReason.TaskComplete, SlotReleaseReason.WillRetry
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.ExceptiongetException()booleanisError()-
Methods inherited from class io.temporal.worker.tuning.SlotReleaseReason
error, neverUsed, taskComplete, willRetry
-
-
-
-
Method Detail
-
isError
public boolean isError()
- Overrides:
isErrorin classSlotReleaseReason
-
getException
public java.lang.Exception getException()
- Overrides:
getExceptionin classSlotReleaseReason- Returns:
- the exception that caused the slot to be released, if this is a reason of type
SlotReleaseReason.Error.
-
-