|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<AepEngine.MessageSendExceptionHandlingPolicy>
com.neeve.aep.AepEngine.MessageSendExceptionHandlingPolicy
public static enum AepEngine.MessageSendExceptionHandlingPolicy
Enumerates an engine's message send exception handling policy.
This enumerates the policy using which an engine determines how to handle unchecked exceptions received on message sends.
Note: There are two types of send failures that an engine can encounter during its operation. The first are exceptions thrown during the message send operation. Such exceptions are typically thrown by the underlying message bus bindings. The other, applicable only to guaranteed channels, is where the message send operation succeeds but could not be stabilized by the underlying messaging provider. This policy only applies to the first type of send failures.
Additionally, this does not cover exceptions thrown to the
application as the result of a send call from a message handler.
Such exceptions are covered by the AepEngine.AppExceptionHandlingPolicy
.
Enum Constant Summary | |
---|---|
LogExceptionAndContinue
Log an exception and continue operating. |
|
TreatAsStabilityFailure
Treat the failure as a stability failure. |
Method Summary | |
---|---|
static AepEngine.MessageSendExceptionHandlingPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name. |
static AepEngine.MessageSendExceptionHandlingPolicy[] |
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.MessageSendExceptionHandlingPolicy LogExceptionAndContinue
With this policy, upon receipt of an unchecked exception from the underlying send machinery, the engine logs the exception and continues operating.
public static final AepEngine.MessageSendExceptionHandlingPolicy TreatAsStabilityFailure
With this policy, upon receipt of an unchecked exception from the underlying send machinery, convert the failure to a stability failure and triggers the stability failure handling policy
This is the default policy.
Method Detail |
---|
public static AepEngine.MessageSendExceptionHandlingPolicy[] values()
for (AepEngine.MessageSendExceptionHandlingPolicy c : AepEngine.MessageSendExceptionHandlingPolicy.values()) System.out.println(c);
public static AepEngine.MessageSendExceptionHandlingPolicy 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 |