X-Git-Url: http://wamblee.org/gitweb/?a=blobdiff_plain;f=impl%2Fsrc%2Fmain%2Fjava%2Forg%2Fwamblee%2Fxmlrouter%2Fimpl%2FXMLRouterConfiguration.java;h=600aac33a8f2564e37e50b0545276e27069fbcf3;hb=3b2c669b25bfcb5a3c3f06ff9180d85143bebb2a;hp=a57a84569e8092f044878f422a466018d2887291;hpb=13b475f8216ad5d74d64df4122ea6812554f7a14;p=xmlrouter diff --git a/impl/src/main/java/org/wamblee/xmlrouter/impl/XMLRouterConfiguration.java b/impl/src/main/java/org/wamblee/xmlrouter/impl/XMLRouterConfiguration.java index a57a845..600aac3 100644 --- a/impl/src/main/java/org/wamblee/xmlrouter/impl/XMLRouterConfiguration.java +++ b/impl/src/main/java/org/wamblee/xmlrouter/impl/XMLRouterConfiguration.java @@ -15,6 +15,8 @@ */ package org.wamblee.xmlrouter.impl; +import org.wamblee.general.Pair; + /** * The XML Router configuration contains both configuration data as well as * derived data used by the XML router. It is important that all this data is @@ -27,27 +29,13 @@ package org.wamblee.xmlrouter.impl; public interface XMLRouterConfiguration { /** - * To be called before the configuration is used. Corresponds to read lock - * acquire. - */ - void startPublishEvent(); - - /** - * @return Configuration data. {@link #startPublishEvent()} must have been - * called before doing this. - */ - ExtendedRouterConfig getRouterConfig(); - - /** - * @return Transformation paths (derived data). - */ - TransformationPaths getTransformations(); - - /** - * To be called after the configuration is used. Corresponds to read lock - * release. + * Atomically get the configuration. The XMLRouter uses this to get a + * snapshot of the configuration data for handling a single message. In this + * way a consistent configuration is used for each event. + * + * @return Configuration. */ - void endPublishEvent(); + Pair getConfig(); /** * Atomically sets the configuration and updates derived data. There will be