mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Update Validators for ServiceQueue
This commit is contained in:
@@ -52,9 +52,6 @@ public:
|
||||
virtual String createParam () = 0;
|
||||
|
||||
/** Fetch the most recent list from the Source.
|
||||
If possible, the Source should periodically poll the
|
||||
CancelCallback, and abort the operation if shouldCancel
|
||||
returns `true`.
|
||||
This call will block.
|
||||
*/
|
||||
struct Result
|
||||
@@ -67,8 +64,12 @@ public:
|
||||
Time expirationTime;
|
||||
Array <Info> list;
|
||||
};
|
||||
|
||||
virtual Result fetch (CancelCallback& callback, Journal journal) = 0;
|
||||
|
||||
/** Cancel any pending fetch.
|
||||
The default implementation does nothing.
|
||||
*/
|
||||
virtual void cancel () { }
|
||||
virtual Result fetch (Journal journal) = 0;
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
@@ -31,12 +31,6 @@ struct ReceivedValidation
|
||||
RipplePublicKeyHash publicKeyHash;
|
||||
};
|
||||
|
||||
/** Callback used to optionally cancel long running fetch operations. */
|
||||
struct CancelCallback
|
||||
{
|
||||
virtual bool shouldCancel () = 0;
|
||||
};
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user