@Retention(value=RUNTIME) @Target(value=TYPE) public @interface AppHAPolicy
AepEngine.HAPolicy.
A clustered Rumi application must specify the AepEngine.HAPolicy. Annotating an
application's main class will cause the Rumi server to configure the application's
AepEngineDescriptor.setHAPolicy(com.neeve.aep.AepEngine.HAPolicy) with this value, just before injecting
the AepEngineDescriptor via an AppInjectionPoint annotated method.
Thus, if an application programmatically sets the AepEngine.HAPolicy in the
AepEngineDescriptor via an AppInjectionPoint the programmatically
set value will take precedence.
@AppHAPolicy(HAPolicy.EventSourcing)
public class DQPerfDriverApp {
@EventHandler
public void onCreateCustomer(CreateCustomerMessage message) {
System.out.println("Received " + message.toJsonString());
}
}
| Modifier and Type | Required Element and Description |
|---|---|
AepEngine.HAPolicy |
value |
public abstract AepEngine.HAPolicy value
AepEngine.HAPolicy for the application.Copyright © 2019 N5 Technologies, Inc. All Rights Reserved.