public static enum AepEngine.InboundEventAcknowledgementPolicy extends Enum<AepEngine.InboundEventAcknowledgementPolicy>
The general contract of an AepEngine
is that it cannot acknowledge up stream
events (such as message events) in a transaction until such as the transaction has been
stabilized to the point that in the event of a failure the message will not be lost.
When the engine is not configured with a store this property has no effect and events are acknowledged when the entire transaction is committed (e.g. when downstream acknowledgements are received.)
Enum Constant and Description |
---|
Default
With this policy allows the engine to select the inbound event acknowledgement policy
based on its conifugaration.
|
OnSendStability
With this policy inbound events are acknowledged one all downsteam acknowledgements
for outbound messages and events have been acknowledged.
|
OnStoreStability
With this experimental policy inbound events are acknowledged once they are committed
to the store without waiting for acknowledgement for the transaction's
outbound messages.
|
Modifier and Type | Method and Description |
---|---|
static AepEngine.InboundEventAcknowledgementPolicy |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static AepEngine.InboundEventAcknowledgementPolicy[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AepEngine.InboundEventAcknowledgementPolicy Default
At present setting this policy results in OnSendStability being used, but this behavior could change in future releases.
public static final AepEngine.InboundEventAcknowledgementPolicy OnSendStability
With this policy messages would not be lost even if a backup and primary member were to fail unrecoverably.
public static final AepEngine.InboundEventAcknowledgementPolicy OnStoreStability
Once an inbound event has been successfully stored it can be recovered from a backup or a standalone instance's trasnaction log, making this policy safe across failover and recovery. Note: this policy is currently in an experimental phase. It is not recommended for use in production without guideance from support.
public static AepEngine.InboundEventAcknowledgementPolicy[] values()
for (AepEngine.InboundEventAcknowledgementPolicy c : AepEngine.InboundEventAcknowledgementPolicy.values()) System.out.println(c);
public static AepEngine.InboundEventAcknowledgementPolicy 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.