File tree Expand file tree Collapse file tree
tools/federation/src/main/java/org/eclipse/rdf4j/federated/cache Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212
1313import java .util .Map ;
1414import java .util .concurrent .ExecutionException ;
15+ import java .util .function .Supplier ;
1516
1617import org .eclipse .rdf4j .federated .endpoint .Endpoint ;
1718import org .eclipse .rdf4j .federated .exception .FedXRuntimeException ;
@@ -49,6 +50,14 @@ public SourceSelectionMemoryCache(String cacheSpec) {
4950 this .cache = CacheBuilder .from (CacheBuilderSpec .parse (cacheSpec )).build ();
5051 }
5152
53+ /**
54+ *
55+ * @param cacheSupplier provider for an instantiated Guava cache
56+ */
57+ public SourceSelectionMemoryCache (Supplier <Cache <SubQuery , Entry >> cacheSupplier ) {
58+ this .cache = cacheSupplier .get ();
59+ }
60+
5261 @ Override
5362 public StatementSourceAssurance getAssurance (SubQuery subQuery , Endpoint endpoint ) {
5463
You can’t perform that action at this time.
0 commit comments