本文整理了Java中net.sf.ehcache.Cache.getStore()
方法的一些代码示例,展示了Cache.getStore()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Cache.getStore()
方法的具体详情如下:
包路径:net.sf.ehcache.Cache
类名称:Cache
方法名:getStore
[英]Gets the internal Store.
[中]获取内部存储。
代码示例来源:origin: net.sf.ehcache/ehcache
/**
* Returns the internal {@link Store} of the cache
*
* @return the internal {@link Store} of the cache
*/
public Store getStore() {
return cache.getStore();
}
代码示例来源:origin: net.sf.ehcache/ehcache
/**
* Get the optional store management bean for this cache.
*
* @return the store MBean
*/
public final Object getStoreMBean() {
return getStore().getMBean();
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.ehcache
/**
* Returns the internal {@link Store} of the cache
*
* @return the internal {@link Store} of the cache
*/
public Store getStore() {
return cache.getStore();
}
代码示例来源:origin: net.sf.ehcache.internal/ehcache-core
/**
* Returns the internal {@link Store} of the cache
*
* @return the internal {@link Store} of the cache
*/
public Store getStore() {
return cache.getStore();
}
代码示例来源:origin: org.sonatype.nexus.bundles/org.sonatype.nexus.bundles.ehcache
/**
* Returns the internal {@link Store} of the cache
*
* @return the internal {@link Store} of the cache
*/
public Store getStore() {
return cache.getStore();
}
代码示例来源:origin: net.sf.ehcache.internal/ehcache-core
/**
* Get the optional store management bean for this cache.
*
* @return the store MBean
*/
public final Object getStoreMBean() {
return getStore().getMBean();
}
代码示例来源:origin: org.apache.servicemix.bundles/org.apache.servicemix.bundles.ehcache
/**
* Get the optional store management bean for this cache.
*/
public final Object getStoreMBean() {
return getStore().getMBean();
}
代码示例来源:origin: org.sonatype.nexus.bundles/org.sonatype.nexus.bundles.ehcache
/**
* Get the optional store management bean for this cache.
*/
public final Object getStoreMBean() {
return getStore().getMBean();
}
代码示例来源:origin: stackoverflow.com
private Task<Boolean> dumpSprites() {
return new Task<Boolean>() {
@Override
protected Boolean call() throws Exception {
try (Cache cache = new Cache(FileStore.open(Constants.CACHE_PATH))) {
ReferenceTable table = ReferenceTable.decode(Container
.decode(cache.getStore().read(255, 8)).getData());
for (int i = 0; i < table.capacity(); i++) {
if (table.getEntry(i) == null)
continue;
Container container = cache.read(8, i);
Sprite sprite = Sprite.decode(container.getData());
File dir = new File(Constants.SPRITE_PATH);
if (!dir.exists()) {
dir.mkdir();
}
for (int frame = 0; frame < sprite.size(); frame++) {
File file = new File(Constants.SPRITE_PATH,
i + "_" + frame + ".png");
BufferedImage image = sprite.getFrame(frame);
ImageIO.write(image, "png", file);
}
updateProgress(i, table.capacity());
}
}
return true;
}
};
}
代码示例来源:origin: stackoverflow.com
.decode(cache.getStore().read(255, 8)).getData());
long count;
for (int i = 0; i < table.capacity(); i++) {
内容来源于网络,如有侵权,请联系作者删除!