com.neeve.aep
Enum AepEngine.MessageBusBindingFailPolicy

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

public static enum AepEngine.MessageBusBindingFailPolicy
extends Enum<AepEngine.MessageBusBindingFailPolicy>

Enumerates an engine's message bus binding fail policy.

This enumerates the policy that determines what action an engine takes when a message bus binding fails.


Enum Constant Summary
FailIfAnyBindingFails
          With this policy, when a binding fails, the engine shuts down all other operational bindings (if any) and dispatches a AepMessagingFailedEvent to the application.
Reconnect
          With this policy, when a binding fails, the engine dispatches channel down events for all channels in the failed binding.
 
Method Summary
static AepEngine.MessageBusBindingFailPolicy valueOf(String name)
          Returns the enum constant of this type with the specified name.
static AepEngine.MessageBusBindingFailPolicy[] 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

Reconnect

public static final AepEngine.MessageBusBindingFailPolicy Reconnect
With this policy, when a binding fails, the engine dispatches channel down events for all channels in the failed binding. It then starts the reconnect process on the failed binding periodically retrying the binding. Channel up events are then dispatched for channels in the binding once the binding has been successfully reestablished.


FailIfAnyBindingFails

public static final AepEngine.MessageBusBindingFailPolicy FailIfAnyBindingFails
With this policy, when a binding fails, the engine shuts down all other operational bindings (if any) and dispatches a AepMessagingFailedEvent to the application. A binding shut down such is done so in a manner that preserves the binding's channel interests on the messaging subsystem for all the binding's guaranteed channels while the binding is offline. This ensures no message loss when the binding is reestablished at a later point.

This is the default messaging start fail policy

Method Detail

values

public static AepEngine.MessageBusBindingFailPolicy[] 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.MessageBusBindingFailPolicy c : AepEngine.MessageBusBindingFailPolicy.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.MessageBusBindingFailPolicy 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.