public class ThumbnailManager extends Object
| Modifier and Type | Class and Description |
|---|---|
protected static class |
ThumbnailManager.FilePurgeVisitor |
| Modifier and Type | Field and Description |
|---|---|
protected File |
baseDir |
protected String |
imageExtention |
protected long |
noImageExpired |
protected int |
splitSize |
protected int |
thumbnailPathCacheSize |
protected static String |
THUMBNAILS_DIR_NAME |
protected int |
thumbnailTaskBulkSize |
protected int |
thumbnailTaskQueueSize |
protected long |
thumbnailTaskQueueTimeout |
| Constructor and Description |
|---|
ThumbnailManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
add(ThumbnailGenerator generator) |
void |
destroy() |
int |
generate() |
protected String |
getImageFilename(Map<String,Object> docMap) |
File |
getThumbnailFile(Map<String,Object> docMap) |
String |
getThumbnailPathOption() |
void |
init() |
boolean |
offer(Map<String,Object> docMap) |
long |
purge(long expiry) |
void |
setImageExtention(String imageExtention) |
void |
setNoImageExpired(long noImageExpired) |
void |
setSplitSize(int splitSize) |
void |
setThumbnailPathCacheSize(int thumbnailPathCacheSize) |
void |
setThumbnailTaskQueueSize(int thumbnailTaskQueueSize) |
protected void |
storeQueue(List<org.codelibs.core.misc.Tuple3<String,String,String>> taskList) |
protected static final String THUMBNAILS_DIR_NAME
protected File baseDir
protected int thumbnailPathCacheSize
protected String imageExtention
protected int splitSize
protected int thumbnailTaskQueueSize
protected int thumbnailTaskBulkSize
protected long thumbnailTaskQueueTimeout
protected long noImageExpired
@PostConstruct public void init()
@PreDestroy public void destroy()
public String getThumbnailPathOption()
protected void storeQueue(List<org.codelibs.core.misc.Tuple3<String,String,String>> taskList)
public int generate()
public void add(ThumbnailGenerator generator)
public long purge(long expiry)
public void setThumbnailPathCacheSize(int thumbnailPathCacheSize)
public void setImageExtention(String imageExtention)
public void setSplitSize(int splitSize)
public void setThumbnailTaskQueueSize(int thumbnailTaskQueueSize)
public void setNoImageExpired(long noImageExpired)
Copyright © 2009–2017 CodeLibs. All rights reserved.