public interface ClientGetState
Modifier and Type | Method and Description |
---|---|
void |
cancel(ClientContext context)
Cancel the request, and call onFailure() on the callback in order to tell
downstream (ultimately the client) that cancel has succeeded, and to allow
it to call removeFrom() to avoid a database leak.
|
long |
getToken()
Get a long value which may be passed around to identify this request (e.g.
|
void |
onResume(ClientContext context)
Called on restarting the node for a persistent request.
|
void |
onShutdown(ClientContext context)
Called just before the final write of client.dat before the node shuts down.
|
void |
schedule(ClientContext context)
Schedule the request on the ClientRequestScheduler.
|
void schedule(ClientContext context)
void cancel(ClientContext context)
long getToken()
void onResume(ClientContext context) throws FetchException
FetchException
void onShutdown(ClientContext context)