com.neeve.aep
Enum AepEngine.InboundEventAcknowledgementPolicy

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

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

Default

public static final AepEngine.InboundEventAcknowledgementPolicy Default
With this policy allows the engine to select the inbound event acknowledgement policy based on its conifugaration.

At present setting this policy results in OnSendStability being used, but this behavior could change in future releases.


OnSendStability

public static final AepEngine.InboundEventAcknowledgementPolicy OnSendStability
With this policy inbound events are acknowledged one all downsteam acknowledgements for outbound messages and events have been acknowledged.

With this policy messages would not be lost even if a backup and primary member were to fail unrecoverably.


OnStoreStability

public static final AepEngine.InboundEventAcknowledgementPolicy 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.

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

values

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