public interface USKFetcherCallback extends USKCallback
Modifier and Type | Method and Description |
---|---|
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 key,
ClientContext context,
boolean metadata,
short codec,
byte[] data,
boolean newKnownGood,
boolean newSlotToo)
Found the latest edition.
|
getPollingPriorityNormal, getPollingPriorityProgress
void onFailure(ClientContext context)
void onCancelled(ClientContext context)
void onFoundEdition(long l, USK key, ClientContext context, boolean metadata, short codec, byte[] data, boolean newKnownGood, boolean newSlotToo)
onFoundEdition
in interface USKCallback
l
- The edition number.key
- 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.