public static enum MatsStageInterceptor.StageCompletedContext.ProcessResult extends java.lang.Enum<MatsStageInterceptor.StageCompletedContext.ProcessResult>
MatsStageInterceptor.StageCompletedContext.getStageInitiatedMessages()
being non-empty.Enum Constant and Description |
---|
GOTO |
NEXT |
NEXT_DIRECT |
NONE
No standard processing result, which is default mode for a Terminator - but note that
initiations might have been produced nevertheless! |
REPLY |
REQUEST |
SYSTEM_EXCEPTION
If the messaging or processing system failed, this will be either
MatsBackendException (messaging handling or db
commit), or MatsMessageSendException (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). |
USER_EXCEPTION
Any exception thrown in the user lambda, causing rollback of the processing.
|
Modifier and Type | Method and Description |
---|---|
static MatsStageInterceptor.StageCompletedContext.ProcessResult |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static MatsStageInterceptor.StageCompletedContext.ProcessResult[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final MatsStageInterceptor.StageCompletedContext.ProcessResult REQUEST
public static final MatsStageInterceptor.StageCompletedContext.ProcessResult REPLY
public static final MatsStageInterceptor.StageCompletedContext.ProcessResult NEXT
public static final MatsStageInterceptor.StageCompletedContext.ProcessResult NEXT_DIRECT
public static final MatsStageInterceptor.StageCompletedContext.ProcessResult GOTO
public static final MatsStageInterceptor.StageCompletedContext.ProcessResult NONE
initiations
might have been produced nevertheless!public static final MatsStageInterceptor.StageCompletedContext.ProcessResult USER_EXCEPTION
NullPointerException
, explicit validation failures (which probably should result
in MatsEndpoint.MatsRefuseMessageException
), and database access or other types of external communication
failures.public static final MatsStageInterceptor.StageCompletedContext.ProcessResult SYSTEM_EXCEPTION
MatsBackendException
(messaging handling or db
commit), or MatsMessageSendException
(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).public static MatsStageInterceptor.StageCompletedContext.ProcessResult[] values()
for (MatsStageInterceptor.StageCompletedContext.ProcessResult c : MatsStageInterceptor.StageCompletedContext.ProcessResult.values()) System.out.println(c);
public static MatsStageInterceptor.StageCompletedContext.ProcessResult valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null