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 class
SlotReleaseReason.Error
The slot was released because some error was encountered before the slot could be used to actually process the task.static class
SlotReleaseReason.NeverUsed
The slot was released because it was never needed.static class
SlotReleaseReason.TaskComplete
The slot was released because the task was completed (regardless of status).static class
SlotReleaseReason.WillRetry
The 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 SlotReleaseReason
error(java.lang.Exception exception)
java.lang.Exception
getException()
boolean
isError()
static SlotReleaseReason
neverUsed()
static SlotReleaseReason
taskComplete()
static SlotReleaseReason
willRetry()
-
-
-
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
.
-
-