com.neeve.aep
Enum AepEngine.MessageSendExceptionHandlingPolicy

java.lang.Object
  extended by java.lang.Enum<AepEngine.MessageSendExceptionHandlingPolicy>
      extended by com.neeve.aep.AepEngine.MessageSendExceptionHandlingPolicy
All Implemented Interfaces:
Serializable, Comparable<AepEngine.MessageSendExceptionHandlingPolicy>
Enclosing class:
AepEngine

public static enum AepEngine.MessageSendExceptionHandlingPolicy
extends 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

LogExceptionAndContinue

public static final AepEngine.MessageSendExceptionHandlingPolicy LogExceptionAndContinue
Log an exception and continue operating.

With this policy, upon receipt of an unchecked exception from the underlying send machinery, the engine logs the exception and continues operating.


TreatAsStabilityFailure

public static final AepEngine.MessageSendExceptionHandlingPolicy TreatAsStabilityFailure
Treat the failure as a stability failure.

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

values

public static AepEngine.MessageSendExceptionHandlingPolicy[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
for (AepEngine.MessageSendExceptionHandlingPolicy c : AepEngine.MessageSendExceptionHandlingPolicy.values())
    System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they are declared

valueOf

public static AepEngine.MessageSendExceptionHandlingPolicy valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name
NullPointerException - if the argument is null


Copyright © 2016 Neeve Research, LLC. All Rights Reserved.