public static enum AepEngine.MessagingStartFailPolicy extends Enum<AepEngine.MessagingStartFailPolicy>
The messaging start operation establishes the bindings to the various buses that an engine is configured to bind to. This enumeration enumerates the policy that determines the conditions under which a messaging start operation is considered to have failed.
The NeverFail option causes a start operation to be considered successful as long as all bind attempts do not result in permanent exceptions (a permanent exception reported by a bind attempt causes the bind operation to not be retried while a non-permanent exception causes the bind attempt to be periodically retried). In other words, the NeverFail option causes a messaging start operation to be reported as successful as long as at least one bind attempt was successful or failed with a non-permanent exception.
Enum Constant and Description |
---|
FailIfAllBindingsFail
This policy causes a messaging start operation to be considered
successful if one or more binding attempts is successful i.e. with
this option, a messaging start operation is reported as failed if
all the binding attempts fail.
|
FailIfOneBindingFails
This policy causes a messaging start operation to be considered
successful only if all bindings attempts are successful i.e. with
this option a messaging start operation is reported as failed if
one or more of the binding attempts fails.
|
NeverFail
This policy causes a start operation to be considered successful
as long as all bind attempts do not result in permanent exceptions
(a permanent exception reported by a bind attempt causes the bind
operation to not be retried while a non-permanent exception causes
the bind attempt to be periodically retried).
|
Modifier and Type | Method and Description |
---|---|
static AepEngine.MessagingStartFailPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AepEngine.MessagingStartFailPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AepEngine.MessagingStartFailPolicy NeverFail
public static final AepEngine.MessagingStartFailPolicy FailIfOneBindingFails
This is the default messaging start fail policy
public static final AepEngine.MessagingStartFailPolicy FailIfAllBindingsFail
public static AepEngine.MessagingStartFailPolicy[] values()
for (AepEngine.MessagingStartFailPolicy c : AepEngine.MessagingStartFailPolicy.values()) System.out.println(c);
public static AepEngine.MessagingStartFailPolicy 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.