public class ReliableResourceDownloaderConfig extends Object
Constructor and Description |
---|
ReliableResourceDownloaderConfig() |
Modifier and Type | Method and Description |
---|---|
int |
getChunkSize() |
int |
getDelayBetweenAttemptsMS() |
DownloadsStatusEventListener |
getEventListener() |
DownloadsStatusEventPublisher |
getEventPublisher() |
int |
getMaxRetryAttempts() |
int |
getMonitorInitialDelayMS() |
long |
getMonitorPeriodMS() |
ResourceCacheImpl |
getResourceCache() |
boolean |
isCacheEnabled() |
boolean |
isCacheWhenCanceled() |
void |
setCacheEnabled(boolean cacheEnabled) |
void |
setCacheWhenCanceled(boolean cacheWhenCanceled) |
void |
setChunkSize(int chunkSize) |
void |
setDelayBetweenAttemptsMS(int delayBetweenAttempts) |
void |
setEventListener(DownloadsStatusEventListener eventListener) |
void |
setEventPublisher(DownloadsStatusEventPublisher eventPublisher) |
void |
setMaxRetryAttempts(int maxRetryAttempts) |
void |
setMonitorInitialDelayMS(int monitorInitialDelayMS) |
void |
setMonitorPeriodMS(long monitorPeriod) |
void |
setResourceCache(ResourceCacheImpl resourceCache) |
public static final int KB
public static final int MB
public int getChunkSize()
public void setChunkSize(int chunkSize)
public int getMonitorInitialDelayMS()
public void setMonitorInitialDelayMS(int monitorInitialDelayMS)
public DownloadsStatusEventListener getEventListener()
public void setEventListener(DownloadsStatusEventListener eventListener)
public DownloadsStatusEventPublisher getEventPublisher()
public void setEventPublisher(DownloadsStatusEventPublisher eventPublisher)
public ResourceCacheImpl getResourceCache()
public void setResourceCache(ResourceCacheImpl resourceCache)
public int getMaxRetryAttempts()
public void setMaxRetryAttempts(int maxRetryAttempts)
public int getDelayBetweenAttemptsMS()
public void setDelayBetweenAttemptsMS(int delayBetweenAttempts)
public long getMonitorPeriodMS()
public void setMonitorPeriodMS(long monitorPeriod)
public boolean isCacheEnabled()
public void setCacheEnabled(boolean cacheEnabled)
public boolean isCacheWhenCanceled()
public void setCacheWhenCanceled(boolean cacheWhenCanceled)
This work is licensed under a Creative Commons Attribution 4.0 International License.