org.geowebcache.diskquota.storage.Quota.setTileSetId()方法的使用及代码示例

x33g5p2x  于2022-01-28 转载在 其他  
字(1.2k)|赞(0)|评价(0)|浏览(89)

本文整理了Java中org.geowebcache.diskquota.storage.Quota.setTileSetId方法的一些代码示例,展示了Quota.setTileSetId的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Quota.setTileSetId方法的具体详情如下:
包路径:org.geowebcache.diskquota.storage.Quota
类名称:Quota
方法名:setTileSetId

Quota.setTileSetId介绍

暂无

代码示例

代码示例来源:origin: GeoWebCache/geowebcache

public Quota mapRow(ResultSet rs, int rowNum) throws SQLException {
    BigDecimal bytes = rs.getBigDecimal(1);
    Quota quota = new Quota(bytes.toBigInteger());
    quota.setTileSetId(tileSetId);
    return quota;
  }
},

代码示例来源:origin: GeoWebCache/geowebcache

private TileSet getOrCreateTileSet(final Transaction transaction, final TileSet tset) {
  String id = tset.getId();
  TileSet stored;
  if (null == (stored = tileSetById.get(transaction, id, LockMode.DEFAULT))) {
    log.debug("Creating TileSet for quota tracking: " + tset);
    tileSetById.putNoReturn(transaction, tset);
    stored = tset;
    Quota tileSetUsedQuota = new Quota();
    tileSetUsedQuota.setTileSetId(tset.getId());
    usedQuotaById.putNoReturn(transaction, tileSetUsedQuota);
  }
  return stored;
}

代码示例来源:origin: GeoWebCache/geowebcache

globalQuota.setTileSetId(GLOBAL_QUOTA_NAME);
usedQuotaById.put(transaction, globalQuota);
log.debug("created Global Quota");

相关文章