Class OutboundMessageFactoryCollection
java.lang.Object
energy.eddie.regionconnector.at.eda.ponton.messages.OutboundMessageFactoryCollection
-
Constructor Summary
ConstructorsConstructorDescriptionOutboundMessageFactoryCollection(List<CMRequestOutboundMessageFactory> outboundCMRequestFactories, List<CMRevokeOutboundMessageFactory> outboundCMRevokeFactories, List<CPRequestOutboundMessageFactory> outboundCPRequestFactories) -
Method Summary
Modifier and TypeMethodDescriptionvoidEDA supports multiple versions of the same schema, but they have certain validity periods.
-
Constructor Details
-
OutboundMessageFactoryCollection
public OutboundMessageFactoryCollection(List<CMRequestOutboundMessageFactory> outboundCMRequestFactories, List<CMRevokeOutboundMessageFactory> outboundCMRevokeFactories, List<CPRequestOutboundMessageFactory> outboundCPRequestFactories)
-
-
Method Details
-
updateActiveFactories
@Scheduled(cron="0 0 0 * * ?", zone="Europe/Vienna") public void updateActiveFactories()EDA supports multiple versions of the same schema, but they have certain validity periods. We can add support for multiple schema version of the same type, but only one of them can be active at a time. This cron job goes through all the available factories and sets the active ones based on the current date. This allows us to switch between different versions of the same message type without restarting the application. -
activeCmRequestFactory
-
activeCmRevokeFactory
-
activeCPRequestFactory
-