|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |
java.lang.Objectjava.lang.Enum<AepEngine.InboundEventAcknowledgementPolicy>
com.neeve.aep.AepEngine.InboundEventAcknowledgementPolicy
public static enum AepEngine.InboundEventAcknowledgementPolicy
Enumerates an engine's inbound event acknowledgement policy.
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 Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
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 |
---|
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.
Method Detail |
---|
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 name
NullPointerException
- if the argument is null
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | ENUM CONSTANTS | FIELD | METHOD | DETAIL: ENUM CONSTANTS | FIELD | METHOD |