| Package | Description |
|---|---|
| xyz.cofe.http | |
| xyz.cofe.http.download |
| Modifier and Type | Field and Description |
|---|---|
protected GetPart |
HttpDownloader.GetPartEvent.getPart |
protected GetPart |
HttpDownloader.FragmentErrorEvent.gp |
| Modifier and Type | Method and Description |
|---|---|
GetPart |
HttpDownloader.GetPartEvent.getGetPart() |
GetPart |
HttpDownloader.FragmentErrorEvent.getGetPart() |
GetPart[] |
HttpDownloader.getGetParts()
Возвращает паралельные загрузки
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
HttpDownloader.addGetPartProgressListener(Queue<Runnable> qe,
GetPart gp,
ContentFragment cf)
Добавляет подписчика на уведомление о прогрессе
|
protected void |
HttpListenerAdapter.downloaderFragmentError(HttpDownloader.FragmentErrorEvent event,
HttpDownloader downloader,
FragmentValidator fv,
GetPart gp,
ContentFragment cf,
Throwable err) |
protected void |
HttpListenerAdapter.downloaderGetPart(HttpDownloader.GetPartEvent event,
HttpDownloader downloader,
GetPart getPart,
ContentFragment contentFragment) |
protected void |
HttpListenerAdapter.downloaderGetPartFinished(HttpDownloader.GetPartFinishedEvent event,
HttpDownloader downloader,
GetPart getPart,
ContentFragment contentFragment) |
protected void |
HttpListenerAdapter.downloaderGetPartStarted(HttpDownloader.GetPartStartedEvent event,
HttpDownloader downloader,
GetPart getPart,
ContentFragment contentFragment) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
HttpDownloader.checkFinishedParts(GetPartList gparts,
WeakHashMap<GetPart,ContentFragment> getPartFragment,
WeakHashMap<ContentFragment,GetPart> fragmentGetPart)
Проверить наличие законченных запросов, и удаляет успешно заверненные.
|
protected boolean |
HttpDownloader.checkFinishedParts(GetPartList gparts,
WeakHashMap<GetPart,ContentFragment> getPartFragment,
WeakHashMap<ContentFragment,GetPart> fragmentGetPart)
Проверить наличие законченных запросов, и удаляет успешно заверненные.
|
protected boolean |
HttpDownloader.checkStopSignal(GetPartList gparts,
WeakHashMap<GetPart,ContentFragment> getPartFragment)
Проверяет сигнал остановки
|
protected CreatedNewParts |
HttpDownloader.createNewParts(List<ContentFragment> lfragments,
GetPartList gparts,
GetPartBuilder gpBuilder,
WeakHashMap<ContentFragment,GetPart> fragmentGetPart,
WeakHashMap<GetPart,ContentFragment> getPartFragment,
Queue<Runnable> qe)
Создает паралельные запросы на полчение недостающих частей
|
protected CreatedNewParts |
HttpDownloader.createNewParts(List<ContentFragment> lfragments,
GetPartList gparts,
GetPartBuilder gpBuilder,
WeakHashMap<ContentFragment,GetPart> fragmentGetPart,
WeakHashMap<GetPart,ContentFragment> getPartFragment,
Queue<Runnable> qe)
Создает паралельные запросы на полчение недостающих частей
|
protected void |
HttpDownloader.finishAsError(GetPartList gparts,
WeakHashMap<GetPart,ContentFragment> getPartFragment,
String message)
Завершить работу паралельных потоков с сообщением.
|
| Constructor and Description |
|---|
FragmentErrorEvent(HttpDownloader downloader,
FragmentValidator fv,
ContentFragment cf,
GetPart gp,
Throwable err) |
GetPartEvent(HttpDownloader downloader,
GetPart getPart,
ContentFragment fragment) |
GetPartFinishedEvent(HttpDownloader downloader,
GetPart getPart,
ContentFragment fragment) |
GetPartStartedEvent(HttpDownloader downloader,
GetPart getPart,
ContentFragment fragment) |
| Modifier and Type | Class and Description |
|---|---|
class |
GetPartMirror |
| Modifier and Type | Field and Description |
|---|---|
Map<GetPart,ContentFragment> |
CreatedNewParts.createdGetParts
Созданные паралельные потоки и соответ. фрагменты которые они обрабатывают
|
protected xyz.cofe.collection.list.EventList<GetPart> |
GetPartList.list |
Map<GetPart,ContentFragment> |
CreatedNewParts.skippedFragmentsInWorkMap
Пропущенные фрагменты, ктоорые уже в работе
|
| Modifier and Type | Method and Description |
|---|---|
GetPart |
GetPart.addResponseListener(HttpListener listener,
boolean weak,
xyz.cofe.collection.Func1<Object,Closeable> closeableReciver)
Добавление подписч. на обработку запроса
|
GetPart |
GetPartList.get(int index) |
GetPart |
GetPartBuilder.getPart(ContentFragment fragment)
Создает асинхронный запрос на получение фрагмента.
|
GetPart |
GetPartList.remove(int index) |
GetPart |
GetPartList.set(int index,
GetPart element) |
GetPart |
GetPart.start()
Запуск на выполнение
|
| Modifier and Type | Method and Description |
|---|---|
Iterator<GetPart> |
GetPartList.iterator() |
ListIterator<GetPart> |
GetPartList.listIterator() |
ListIterator<GetPart> |
GetPartList.listIterator(int index) |
List<GetPart> |
GetPartList.subList(int fromIndex,
int toIndex) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
GetPartList.add(GetPart e) |
void |
GetPartList.add(int index,
GetPart element) |
protected boolean |
BasicFragmentValidator.downloadedNotMatchRequired(GetPart gp,
ContentFragment cf) |
protected boolean |
BasicFragmentValidator.hasErrors(GetPart gp,
ContentFragment cf) |
protected boolean |
BasicFragmentValidator.invalidRangeContentStart(GetPart gp,
ContentFragment cf) |
protected boolean |
BasicFragmentValidator.isFinished(GetPart gp) |
protected boolean |
BasicFragmentValidator.notPartialContent(GetPart gp,
ContentFragment cf) |
protected boolean |
BasicFragmentValidator.nullHttpHeaders(GetPart gp,
ContentFragment cf) |
GetPart |
GetPartList.set(int index,
GetPart element) |
protected boolean |
BasicFragmentValidator.statusCodeInvalid(GetPart gp,
ContentFragment cf) |
boolean |
FragmentValidator.validate(GetPart gp,
ContentFragment cf)
Проверка фрагмента на валидность
|
boolean |
BasicFragmentValidator.validate(GetPart gp,
ContentFragment cf) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
GetPartList.addAll(Collection<? extends GetPart> c) |
boolean |
GetPartList.addAll(int index,
Collection<? extends GetPart> c) |
Closeable |
GetPartList.addEventListListener(xyz.cofe.collection.list.EventListListener<GetPart> listener) |
Closeable |
GetPartList.addEventListListener(xyz.cofe.collection.list.EventListListener<GetPart> listener,
boolean weakListener) |
boolean |
GetPartList.containsEventListListener(xyz.cofe.collection.list.EventListListener<GetPart> listener) |
Closeable |
GetPartList.onAdded(xyz.cofe.common.Reciver<GetPart> listener) |
Closeable |
GetPartList.onAdding(xyz.cofe.common.Reciver<GetPart> listener) |
Closeable |
GetPartList.onChanged(xyz.cofe.collection.Func3<Object,Integer,GetPart,GetPart> fn) |
Closeable |
GetPartList.onChanged(xyz.cofe.collection.Func3<Object,Integer,GetPart,GetPart> fn) |
Closeable |
GetPartList.onChanged(xyz.cofe.collection.Func3<Object,Integer,GetPart,GetPart> fn,
boolean weak) |
Closeable |
GetPartList.onChanged(xyz.cofe.collection.Func3<Object,Integer,GetPart,GetPart> fn,
boolean weak) |
Closeable |
GetPartList.onChanging(xyz.cofe.collection.Func3<Object,Integer,GetPart,GetPart> fn) |
Closeable |
GetPartList.onChanging(xyz.cofe.collection.Func3<Object,Integer,GetPart,GetPart> fn) |
Closeable |
GetPartList.onChanging(xyz.cofe.collection.Func3<Object,Integer,GetPart,GetPart> fn,
boolean weak) |
Closeable |
GetPartList.onChanging(xyz.cofe.collection.Func3<Object,Integer,GetPart,GetPart> fn,
boolean weak) |
Closeable |
GetPartList.onDeleted(xyz.cofe.collection.Func3<Object,Integer,GetPart,GetPart> fn) |
Closeable |
GetPartList.onDeleted(xyz.cofe.collection.Func3<Object,Integer,GetPart,GetPart> fn) |
Closeable |
GetPartList.onDeleted(xyz.cofe.collection.Func3<Object,Integer,GetPart,GetPart> fn,
boolean weak) |
Closeable |
GetPartList.onDeleted(xyz.cofe.collection.Func3<Object,Integer,GetPart,GetPart> fn,
boolean weak) |
Closeable |
GetPartList.onDeleting(xyz.cofe.collection.Func3<Object,Integer,GetPart,GetPart> fn) |
Closeable |
GetPartList.onDeleting(xyz.cofe.collection.Func3<Object,Integer,GetPart,GetPart> fn) |
Closeable |
GetPartList.onDeleting(xyz.cofe.collection.Func3<Object,Integer,GetPart,GetPart> fn,
boolean weak) |
Closeable |
GetPartList.onDeleting(xyz.cofe.collection.Func3<Object,Integer,GetPart,GetPart> fn,
boolean weak) |
Closeable |
GetPartList.onInserted(xyz.cofe.collection.Func3<Object,Integer,GetPart,GetPart> fn) |
Closeable |
GetPartList.onInserted(xyz.cofe.collection.Func3<Object,Integer,GetPart,GetPart> fn) |
Closeable |
GetPartList.onInserted(xyz.cofe.collection.Func3<Object,Integer,GetPart,GetPart> fn,
boolean weak) |
Closeable |
GetPartList.onInserted(xyz.cofe.collection.Func3<Object,Integer,GetPart,GetPart> fn,
boolean weak) |
Closeable |
GetPartList.onInserting(xyz.cofe.collection.Func3<Object,Integer,GetPart,GetPart> fn) |
Closeable |
GetPartList.onInserting(xyz.cofe.collection.Func3<Object,Integer,GetPart,GetPart> fn) |
Closeable |
GetPartList.onInserting(xyz.cofe.collection.Func3<Object,Integer,GetPart,GetPart> fn,
boolean weak) |
Closeable |
GetPartList.onInserting(xyz.cofe.collection.Func3<Object,Integer,GetPart,GetPart> fn,
boolean weak) |
Closeable |
GetPartList.onRemoved(xyz.cofe.common.Reciver<GetPart> listener) |
Closeable |
GetPartList.onRemoving(xyz.cofe.common.Reciver<GetPart> listener) |
Closeable |
GetPartList.onUpdated(xyz.cofe.collection.Func3<Object,Integer,GetPart,GetPart> fn) |
Closeable |
GetPartList.onUpdated(xyz.cofe.collection.Func3<Object,Integer,GetPart,GetPart> fn) |
Closeable |
GetPartList.onUpdated(xyz.cofe.collection.Func3<Object,Integer,GetPart,GetPart> fn,
boolean weak) |
Closeable |
GetPartList.onUpdated(xyz.cofe.collection.Func3<Object,Integer,GetPart,GetPart> fn,
boolean weak) |
Closeable |
GetPartList.onUpdating(xyz.cofe.collection.Func3<Object,Integer,GetPart,GetPart> fn) |
Closeable |
GetPartList.onUpdating(xyz.cofe.collection.Func3<Object,Integer,GetPart,GetPart> fn) |
Closeable |
GetPartList.onUpdating(xyz.cofe.collection.Func3<Object,Integer,GetPart,GetPart> fn,
boolean weak) |
Closeable |
GetPartList.onUpdating(xyz.cofe.collection.Func3<Object,Integer,GetPart,GetPart> fn,
boolean weak) |
void |
GetPartList.removeEventListListener(xyz.cofe.collection.list.EventListListener<GetPart> listener) |
Copyright © 2017. All rights reserved.