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