public class ContextTerminationReason extends SimpleTerminationReason
Constructor and Description |
---|
ContextTerminationReason(java.lang.String contextName,
TerminationReasonEnum reason)
Creates new instance.
|
ContextTerminationReason(java.lang.String contextName,
TerminationReasonEnum reason,
java.lang.String code)
Creates new instance.
|
ContextTerminationReason(java.lang.String contextName,
TerminationReasonEnum reason,
java.lang.String code,
java.lang.Object payload)
Creates new instance.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getContextName()
Returns the context name.
|
java.lang.String |
getDescription()
Returns description of reason why task was terminated.
|
getCode, getPayload, getReason, isAccomplished, toString
public ContextTerminationReason(java.lang.String contextName, TerminationReasonEnum reason, java.lang.String code, java.lang.Object payload)
contextName
- reason
- code
- payload
- public ContextTerminationReason(java.lang.String contextName, TerminationReasonEnum reason, java.lang.String code)
contextName
- context namereason
- termination reasoncode
- public ContextTerminationReason(java.lang.String contextName, TerminationReasonEnum reason)
contextName
- reason
- public java.lang.String getContextName()
public java.lang.String getDescription()
TerminationReason
getDescription
in interface TerminationReason
getDescription
in class SimpleTerminationReason
Copyright © 2007-2020 Whitestein Technologies. All Rights Reserved.