com.neeve.aep
Enum AepEngine.MessageSendPolicy

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

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

Enumerates an engine's outbound message send policy


Enum Constant Summary
Noop
          This policy causes outbound messages to be silently discarded.
ReplicateBeforeSend
          This policy causes state/messages to be replicated before sending outbound messages triggered by the processing of inbound messages.
SendBeforeReplicate
          This policy causes outbound messages triggered by the processing of inbound messages to be sent outbound first before replicating the state/inbound messages.
 
Method Summary
static AepEngine.MessageSendPolicy valueOf(String name)
          Returns the enum constant of this type with the specified name.
static AepEngine.MessageSendPolicy[] 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

Noop

public static final AepEngine.MessageSendPolicy Noop
This policy causes outbound messages to be silently discarded. No stability notifications are dispatched for this policy for messages sent through guaranteed channels.


ReplicateBeforeSend

public static final AepEngine.MessageSendPolicy ReplicateBeforeSend
This policy causes state/messages to be replicated before sending outbound messages triggered by the processing of inbound messages. In other words, for event sourcing, this policy causes an inbound message to be processed, the message replicated for processing to the back instance(s) and then outbound messages triggered by the processing of the message to be sent outbound (after processing acknowledgments have been received from all back instance(s). For state replication, this policy causes can inbound message to be processed, the state changes triggered by the processing of the inbound message to be replicated to the backup instance(s) and then the outbound messages triggered by the processing of the inbound message to be sent (after receiving state replication stability notifications from the backup instance(s)).


SendBeforeReplicate

public static final AepEngine.MessageSendPolicy SendBeforeReplicate
This policy causes outbound messages triggered by the processing of inbound messages to be sent outbound first before replicating the state/inbound messages. In other words, for event sourcing, this policy causes an inbound message to be processed, the outbound messages triggered by the processing of the inbound message to be dispatched outbound and then the inbound message replicated to the backup instance(s) for parallel processing (after outbound send stability notifications have been received from downstream agents). For state replication, this policy causes an inbound message to be processed, the outbound messages triggered by the processing of the inbound message to be dispatched outbound and then the state changes affected by the processing of the inbound messages to be replicated for stability to the backup instance(s).

Method Detail

values

public static AepEngine.MessageSendPolicy[] 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.MessageSendPolicy c : AepEngine.MessageSendPolicy.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.MessageSendPolicy 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 © 2015 Neeve Research, LLC. All Rights Reserved.