|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<AepEngine.AppExceptionHandlingPolicy>
com.neeve.aep.AepEngine.AppExceptionHandlingPolicy
public static enum AepEngine.AppExceptionHandlingPolicy
Enumerates an engine's application exception handling policy.
This enumerates the policy using which an engine determines how to handle unchecked exceptions thrown by an application message handler.
Enum Constant Summary | |
---|---|
LogExceptionAndContinue
Log an exception and continue operating. |
|
QuarantineAndStop
Quarantine offending message and stop engine. |
|
RollbackAndStop
Stop the engine. |
Method Summary | |
---|---|
static AepEngine.AppExceptionHandlingPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static AepEngine.AppExceptionHandlingPolicy[] |
values()
Returns an array containing the constants of this enum type, in the order they are declared. |
Methods inherited from class java.lang.Enum |
---|
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
---|
getClass, notify, notifyAll, wait, wait, wait |
Enum Constant Detail |
---|
public static final AepEngine.AppExceptionHandlingPolicy LogExceptionAndContinue
With this policy, upon receipt of an unchecked exception from an application's event/message handler, the engine:
When applied to an exception thrown from a message filter the message will not be dispatched to application event handlers.
In all cases the message will not be considered to be part of the transaction and is acknowledged upstream.
public static final AepEngine.AppExceptionHandlingPolicy RollbackAndStop
With this policy, upon receipt of an unchecked exception from an application handler, the engine:
Note that even if all prior transactions complete successfully is currently possible that that not
all stabilized transactions will be reported to a backup or the transaction log ... in such cases
it is possible that outbound message redelivery can occur on failover or recovery, though those
messages will be filtered by duplicate checking
at the downstream receiver if enabled. In this
regard a RollbackAndStop failure in which an application isn't using duplicate checking
has the same
redelivery guarantees for outbound messaging as a process failure except that inbound messages are
acknowledged upstream on a best effort basis. This doesn't impose any additional coding requirements
on application not using duplicate checking
as they must tolerate duplicates to protect against
process failure anyway.
This is the default policy.
public static final AepEngine.AppExceptionHandlingPolicy QuarantineAndStop
With this policy, upon receipt of an unchecked exception from an application's event/message handler, the engine:
Method Detail |
---|
public static AepEngine.AppExceptionHandlingPolicy[] values()
for (AepEngine.AppExceptionHandlingPolicy c : AepEngine.AppExceptionHandlingPolicy.values()) System.out.println(c);
public static AepEngine.AppExceptionHandlingPolicy valueOf(String name)
name
- the name of the enum constant to be returned.
IllegalArgumentException
- if this enum type has no constant
with the specified name
NullPointerException
- if the argument is null
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |