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 USKFetcherTagCallback
public int hashCode()
hashCode
in class java.lang.Object
public void onFoundEdition(long l, USK newUSK, ClientContext context, boolean metadata, short codec, byte[] data, boolean newKnownGood, boolean newSlotToo)
USKFetcherCallback
onFoundEdition
in interface USKCallback
onFoundEdition
in interface USKFetcherCallback
l
- 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)
USKFetcherCallback
onFailure
in interface USKFetcherCallback
public void onCancelled(ClientContext context)
onCancelled
in interface USKFetcherCallback
public short getPollingPriorityNormal()
USKCallback
getPollingPriorityNormal
in interface USKCallback
public short getPollingPriorityProgress()
USKCallback
getPollingPriorityProgress
in interface USKCallback