public static enum AepEngine.MessageSendExceptionHandlingPolicy extends Enum<AepEngine.MessageSendExceptionHandlingPolicy>
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 applies to the former type of send failures. See
AepEngine.MessageSendStabilityFailureHandlingPolicy
for the settings
to handle the latter type of 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 and Description |
---|
LogExceptionAndContinue
Log an exception and continue operating.
|
TreatAsStabilityFailure
Treat the failure as a stability failure.
|
Modifier and Type | Method and Description |
---|---|
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.
|
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.
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 nameNullPointerException
- if the argument is nullCopyright © 2019 Neeve Research, LLC. All Rights Reserved.