public class SubscribeUSK extends java.lang.Object implements USKProgressCallback
| Constructor and Description |
|---|
SubscribeUSK(SubscribeUSKMessage message,
NodeClientCore core,
FCPConnectionHandler handler) |
| 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.
|
void |
onFoundEdition(long l,
USK key,
ClientContext context,
boolean wasMetadata,
short codec,
byte[] data,
boolean newKnownGood,
boolean newSlotToo)
Found the latest edition.
|
void |
onRoundFinished(ClientContext context)
Called when we have checked the datastore, and all our polling requests
have gone into cooldown, and all our random future edition probes have
completed.
|
void |
onSendingToNetwork(ClientContext context)
Called when the datastore has been checked and we are now going to send
requests.
|
void |
unsubscribe() |
public SubscribeUSK(SubscribeUSKMessage message, NodeClientCore core, FCPConnectionHandler handler) throws IdentifierCollisionException
IdentifierCollisionExceptionpublic void onFoundEdition(long l,
USK key,
ClientContext context,
boolean wasMetadata,
short codec,
byte[] data,
boolean newKnownGood,
boolean newSlotToo)
USKCallbackonFoundEdition in interface USKCallbackl - The edition number.key - A copy of the key with new edition setnewKnownGood - 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 short getPollingPriorityNormal()
USKCallbackgetPollingPriorityNormal in interface USKCallbackpublic short getPollingPriorityProgress()
USKCallbackgetPollingPriorityProgress in interface USKCallbackpublic void unsubscribe()
public void onSendingToNetwork(ClientContext context)
USKProgressCallbackonSendingToNetwork in interface USKProgressCallbackpublic void onRoundFinished(ClientContext context)
USKProgressCallbackonRoundFinished in interface USKProgressCallback