public static class SingleFileFetcher.MyUSKFetcherCallback extends java.lang.Object implements USKFetcherTagCallback, java.io.Serializable
| Constructor and Description |
|---|
MyUSKFetcherCallback(ClientRequester requester,
GetCompletionCallback cb,
USK usk,
java.util.ArrayList<java.lang.String> metaStrings,
FetchContext ctx,
ArchiveContext actx,
boolean realTimeFlag,
int maxRetries,
int recursionLevel,
boolean dontTellClientGet,
long l,
boolean persistent,
boolean datastoreOnly) |
| Modifier and Type | Method and Description |
|---|---|
short |
getPollingPriorityNormal()
Priority at which the polling should run normally.
|
short |
getPollingPriorityProgress()
Priority at which the polling should run when starting, or immediately after making some progress.
|
int |
hashCode() |
void |
onCancelled(ClientContext context) |
void |
onFailure(ClientContext context)
Failed to find any edition at all (later than or equal to the specified hint)
|
void |
onFoundEdition(long l,
USK newUSK,
ClientContext context,
boolean metadata,
short codec,
byte[] data,
boolean newKnownGood,
boolean newSlotToo)
Found the latest edition.
|
void |
setTag(freenet.client.async.USKFetcherTag tag,
ClientContext context) |
public MyUSKFetcherCallback(ClientRequester requester, GetCompletionCallback cb, USK usk, java.util.ArrayList<java.lang.String> metaStrings, FetchContext ctx, ArchiveContext actx, boolean realTimeFlag, int maxRetries, int recursionLevel, boolean dontTellClientGet, long l, boolean persistent, boolean datastoreOnly)
public void setTag(freenet.client.async.USKFetcherTag tag,
ClientContext context)
setTag in interface USKFetcherTagCallbackpublic int hashCode()
hashCode in class java.lang.Objectpublic void onFoundEdition(long l,
USK newUSK,
ClientContext context,
boolean metadata,
short codec,
byte[] data,
boolean newKnownGood,
boolean newSlotToo)
USKFetcherCallbackonFoundEdition in interface USKCallbackonFoundEdition in interface USKFetcherCallbackl - The edition number.newUSK - The key.newKnownGood - If the highest known good edition (which has actually been
fetched with what it pointed to) has increased. Otherwise, the highest known
SSK slot has been increased, from which searches will start, but we do not
know whether it can actually be fetched successfully.newSlotToo - If newKnownGood is set, this indicates whether it is also a
new highest known SSK slot. If newKnownGood is not set, there is always a new
highest known SSK slot.public void onFailure(ClientContext context)
USKFetcherCallbackonFailure in interface USKFetcherCallbackpublic void onCancelled(ClientContext context)
onCancelled in interface USKFetcherCallbackpublic short getPollingPriorityNormal()
USKCallbackgetPollingPriorityNormal in interface USKCallbackpublic short getPollingPriorityProgress()
USKCallbackgetPollingPriorityProgress in interface USKCallback