Package io.mats3.api.intercept
Enum Class MatsStageInterceptor.StageCompletedContext.ProcessResult
java.lang.Object
java.lang.Enum<MatsStageInterceptor.StageCompletedContext.ProcessResult>
io.mats3.api.intercept.MatsStageInterceptor.StageCompletedContext.ProcessResult
- All Implemented Interfaces:
Serializable
,Comparable<MatsStageInterceptor.StageCompletedContext.ProcessResult>
,Constable
- Enclosing interface:
- MatsStageInterceptor.StageCompletedContext
public static enum MatsStageInterceptor.StageCompletedContext.ProcessResult
extends Enum<MatsStageInterceptor.StageCompletedContext.ProcessResult>
The main result of the Stage Processing - if the stage also initiated messages, this will be known by
MatsStageInterceptor.StageCompletedContext.getStageInitiatedMessages()
being non-empty.-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionNo standard processing result, which is default mode for a Terminator - but note thatinitiations
might have been produced nevertheless!If the messaging or processing system failed, this will be eitherMatsBackendException
(messaging handling or db commit), orMatsMessageSendException
(which is the "VERY BAD!" scenario where db is committed, whereupon the messaging commit failed - which quite possibly is a "notify the humans!"-situation, unless the user code is crafted to handle such a situation by being idempotent).Any exception thrown in the user lambda, causing rollback of the processing. -
Method Summary
Modifier and TypeMethodDescriptionReturns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
REQUEST
-
REPLY
-
NEXT
-
NEXT_DIRECT
-
GOTO
-
NONE
No standard processing result, which is default mode for a Terminator - but note thatinitiations
might have been produced nevertheless! -
USER_EXCEPTION
Any exception thrown in the user lambda, causing rollback of the processing. This may both be code failures (e.g.NullPointerException
, explicit validation failures (which probably should result inMatsEndpoint.MatsRefuseMessageException
), and database access or other types of external communication failures. -
SYSTEM_EXCEPTION
If the messaging or processing system failed, this will be eitherMatsBackendException
(messaging handling or db commit), orMatsMessageSendException
(which is the "VERY BAD!" scenario where db is committed, whereupon the messaging commit failed - which quite possibly is a "notify the humans!"-situation, unless the user code is crafted to handle such a situation by being idempotent).
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-