@Override public InputStream getStream() throws DataStoreException { return store.getStream(getIdentifier()); }
@Override public void run() { long startTime = System.currentTimeMillis(); InputStream input = null; try { LOG.trace("Async download [{}] started.", identifier); input = getStream(identifier); } catch (RepositoryException re) { // ignore exception } finally { asyncDownloadCache.remove(identifier); IOUtils.closeQuietly(input); LOG.debug("Async download [{}] completed in [{}] ms.", identifier, (System.currentTimeMillis() - startTime)); } } });
@Override public void run() { long startTime = System.currentTimeMillis(); InputStream input = null; try { LOG.trace("Async download [{}] started.", identifier); input = getStream(identifier); } catch (RepositoryException re) { // ignore exception } finally { asyncDownloadCache.remove(identifier); IOUtils.closeQuietly(input); LOG.debug("Async download [{}] completed in [{}] ms.", identifier, (System.currentTimeMillis() - startTime)); } } });
@Override public InputStream getStream() throws DataStoreException { return store.getStream(getIdentifier()); }
@Override public InputStream getStream() throws DataStoreException { return store.getStream(getIdentifier()); }
@Override public void run() { long startTime = System.currentTimeMillis(); InputStream input = null; try { LOG.trace("Async download [{}] started.", identifier); input = getStream(identifier); } catch (RepositoryException re) { // ignore exception } finally { asyncDownloadCache.remove(identifier); IOUtils.closeQuietly(input); LOG.debug("Async download [{}] completed in [{}] ms.", identifier, (System.currentTimeMillis() - startTime)); } } });