public class ResourceRetrievalMonitor extends TimerTask
|Constructor and Description|
|Modifier and Type||Method and Description|
Returns the number of bytes read from the resource's @InputStream thus far.
public ResourceRetrievalMonitor(Future<?> future, ReliableResourceCallable reliableResourceCallable, long monitorPeriod, DownloadsStatusEventPublisher eventPublisher, ResourceResponse resourceResponse, Metacard metacard, String downloadIdentifier)
future- the @Future that started the @ReliableResourceCallable doing the resource download
reliableResourceCallable- the @Callable to interrupt if no bytes read in specified period
monitorPeriod- the frequency (in ms) this monitor should check for bytes read
eventPublisher- reference to the publisher of status events as the download progresses
resourceResponse- the resource response of the request
metacard- the @Metacard associated with the resource being downloaded
This work is licensed under a Creative Commons Attribution 4.0 International License.