Skip to content

Commit

Permalink
0005741: Java router code assistance
Browse files Browse the repository at this point in the history
  • Loading branch information
catherinequamme committed Apr 10, 2023
1 parent eae714c commit bce0f20
Showing 1 changed file with 3 additions and 0 deletions.
Expand Up @@ -25,6 +25,7 @@

import org.jumpmind.extension.IBuiltInExtensionPoint;
import org.jumpmind.symmetric.ISymmetricEngine;
import org.jumpmind.symmetric.db.ISymmetricDialect;
import org.jumpmind.symmetric.model.DataMetaData;
import org.jumpmind.symmetric.model.Node;
import org.jumpmind.symmetric.model.Router;
Expand All @@ -44,10 +45,12 @@ public class JavaDataRouter extends AbstractDataRouter implements IBuiltInExtens
+ " boolean initialLoad, boolean initialLoadSelectUsed, TriggerRouter triggerRouter) {\n\n";
public final static String CODE_END = "\n\n }\n}\n";
protected ISymmetricEngine engine;
protected ISymmetricDialect dialect;
protected final String ROUTER_KEY = String.format("%d.JavaRouter", hashCode());

public JavaDataRouter(ISymmetricEngine engine) {
this.engine = engine;
this.dialect = engine.getSymmetricDialect();
}

public Set<String> routeToNodes(SimpleRouterContext context, DataMetaData dataMetaData, Set<Node> nodes,
Expand Down

0 comments on commit bce0f20

Please sign in to comment.