public final class Cache
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
class |
Cache.AsyncStream
Asynchroneous stream that will be download in the cache.
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CACHE_BASE_PROPERTY
System property used to have multiple server data, and to cut down the cache hierarchy depth.
|
static java.lang.String |
CACHE_CLEAR_PROPERTY
System property used for clearing the cache at creation.
|
static java.lang.String |
CACHE_EXPIRACY_PROPERTY
System property used to enable data versioning (allow to invalid cache if data was updated on the server).
|
static java.lang.String |
CACHE_NAME_PROPERTY
System property used to define the cache dir name.
|
static java.lang.String |
CACHE_NUMRETRY_PROPERTY
System property used for specifying the maximum number of retry request.
|
static java.lang.String |
CACHE_NUMTHREADS_PROPERTY
System property used for specifying the maximum number of internal thread to use for downloading data in the cache.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
static Cache |
get() |
Cache.AsyncStream |
get(Stream stream) |
long |
getNumBytesDownloaded() |
long |
getNumBytesToDownload() |
int |
getQueueSize() |
boolean |
isCacheExpiracy() |
boolean |
isQueueEmpty() |
boolean |
isWorking() |
boolean |
queue(Cache.AsyncStream asyncStream) |
Cache.AsyncStream |
queue(Stream stream) |
Finder.FinderCallback |
setFinderCallback(Finder.FinderCallback finderCallback) |
public static final java.lang.String CACHE_NAME_PROPERTY
public static final java.lang.String CACHE_BASE_PROPERTY
public static final java.lang.String CACHE_CLEAR_PROPERTY
public static final java.lang.String CACHE_NUMTHREADS_PROPERTY
public static final java.lang.String CACHE_NUMRETRY_PROPERTY
public static final java.lang.String CACHE_EXPIRACY_PROPERTY
public static Cache get()
public Finder.FinderCallback setFinderCallback(Finder.FinderCallback finderCallback)
Finder.FinderCallbackpublic final void clear()
public boolean isCacheExpiracy()
public Cache.AsyncStream get(Stream stream)
public Cache.AsyncStream queue(Stream stream)
public boolean queue(Cache.AsyncStream asyncStream)
public int getQueueSize()
public boolean isQueueEmpty()
public boolean isWorking()
public final long getNumBytesDownloaded()
public final long getNumBytesToDownload()
Bonzai Engine 1.3.4 11/12/2015 - A Java OpenGL engine and tools for Windows/Mac/Linux/Android
Copyright © 2007-2015 Jérôme Jouvie bonzaiengine.com contact@bonzaiengine.com