public CatalogConfiguration(final Catalog catalog, final TileLayerCatalog tileLayerCatalog, final GridSetBroker gridSetBroker) { checkNotNull(catalog); checkNotNull(tileLayerCatalog); checkNotNull(gridSetBroker); this.tileLayerCatalog = tileLayerCatalog; this.geoServerCatalog = catalog; this.gridSetBroker = gridSetBroker; this.layerCache = CacheBuilder.newBuilder()// .concurrencyLevel(10)// .expireAfterAccess(10, TimeUnit.MINUTES)// .initialCapacity(10)// .maximumSize(100)// .build(new TileLayerLoader(tileLayerCatalog)); }
public CatalogConfiguration( final Catalog catalog, final TileLayerCatalog tileLayerCatalog, final GridSetBroker gridSetBroker) { checkNotNull(catalog); checkNotNull(tileLayerCatalog); checkNotNull(gridSetBroker); this.tileLayerCatalog = tileLayerCatalog; this.geoServerCatalog = catalog; this.gridSetBroker = gridSetBroker; this.layerCache = CacheBuilder.newBuilder() // .concurrencyLevel(10) // .expireAfterAccess(10, TimeUnit.MINUTES) // .initialCapacity(10) // .maximumSize(100) // .build(new TileLayerLoader(tileLayerCatalog)); }