public final class TaskFailedEvent extends java.lang.Object implements TaskEvent, ServiceFailureEvent
Event sent when the task running in WorkerService
has failed due to an exception.
Modifier and Type | Field and Description |
---|---|
private java.lang.Throwable |
cause |
private java.time.LocalDateTime |
timestamp |
Constructor and Description |
---|
TaskFailedEvent(java.lang.Throwable cause) |
Modifier and Type | Method and Description |
---|---|
java.lang.Throwable |
cause()
Returns a cause of the failure.
|
java.lang.String |
serviceName()
Returns a name of the failed service.
|
java.lang.String |
toString() |
private final java.lang.Throwable cause
private final java.time.LocalDateTime timestamp
public java.lang.String serviceName()
ServiceFailureEvent
Returns a name of the failed service.
serviceName
in interface ServiceFailureEvent
public java.lang.Throwable cause()
ServiceFailureEvent
Returns a cause of the failure.
cause
in interface ServiceFailureEvent
public java.lang.String toString()
toString
in class java.lang.Object