public static enum AepEngine.MessageSendStabilityFailureHandlingPolicy extends Enum<AepEngine.MessageSendStabilityFailureHandlingPolicy>
This enumerates the policy using which an engine determines how to handle stability failures notifications for outbound 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 latter type of send failures. See
AepEngine.MessageSendExceptionHandlingPolicy
for the settings
to handle the former 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.
|
StopEngine
Stop the engine on encountering such a failure.
|
Modifier and Type | Method and Description |
---|---|
static AepEngine.MessageSendStabilityFailureHandlingPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AepEngine.MessageSendStabilityFailureHandlingPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AepEngine.MessageSendStabilityFailureHandlingPolicy LogExceptionAndContinue
With this policy, the engine logs an exception and continues operating after receeving the send stability failure notification
Note: When using this configuration, note that the engine will NOT retry sends that could not be stabilized by the messaging provider. This will very likely result in the sent messages that could not be stabilized to be lost. Recovery of such messages is the applications responsibility.
public static final AepEngine.MessageSendStabilityFailureHandlingPolicy StopEngine
With this policy, the engine shuts down when it receives a stability failure notification
This is the default policy.
public static AepEngine.MessageSendStabilityFailureHandlingPolicy[] values()
for (AepEngine.MessageSendStabilityFailureHandlingPolicy c : AepEngine.MessageSendStabilityFailureHandlingPolicy.values()) System.out.println(c);
public static AepEngine.MessageSendStabilityFailureHandlingPolicy 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.