Package com.uber.cadence.workflow
Class ActivityTimeoutException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.uber.cadence.workflow.WorkflowOperationException
-
- com.uber.cadence.workflow.ActivityException
-
- com.uber.cadence.workflow.ActivityTimeoutException
-
- All Implemented Interfaces:
java.io.Serializable
public final class ActivityTimeoutException extends ActivityException
ActivityTimeoutException indicates that an activity has timed out. If the timeout type is aTimeoutType.HEARTBEAT
then thegetDetails(Class)
returns a value passed to the latest successfulActivity.heartbeat(Object)
call.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ActivityTimeoutException(long eventId, ActivityType activityType, java.lang.String activityId, TimeoutType timeoutType, byte[] details, DataConverter dataConverter)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <V> V
getDetails(java.lang.Class<V> detailsClass)
<V> V
getDetails(java.lang.Class<V> detailsClass, java.lang.reflect.Type detailsType)
TimeoutType
getTimeoutType()
-
Methods inherited from class com.uber.cadence.workflow.ActivityException
getActivityId, getActivityType
-
Methods inherited from class com.uber.cadence.workflow.WorkflowOperationException
getEventId
-
-
-
-
Constructor Detail
-
ActivityTimeoutException
public ActivityTimeoutException(long eventId, ActivityType activityType, java.lang.String activityId, TimeoutType timeoutType, byte[] details, DataConverter dataConverter)
-
-
Method Detail
-
getTimeoutType
public TimeoutType getTimeoutType()
-
getDetails
public <V> V getDetails(java.lang.Class<V> detailsClass)
- Returns:
- The value from the last activity heartbeat details field.
-
getDetails
public <V> V getDetails(java.lang.Class<V> detailsClass, java.lang.reflect.Type detailsType)
- Returns:
- The value from the last activity heartbeat details field.
-
-