Public Member Functions | |
virtual bool | TryIssueWrite ()=0 |
Called to determine if a write can be issued. Returns true if the write can be issued and false if not. If it returns true then you MUST call WriteCompleted() when the write completes. | |
virtual void | IssueWrite ()=0 |
Called when a write is issued. Blocks until a write can be issued. You MUST call WriteCompleted() when the write completes. | |
virtual void | WriteCompleted ()=0 |
Called when a write has completed or failed if that write was issued after TryIssueWrite() has returned true, or after IssueWrite() has been called. | |
virtual LONG | GetOverallLimit () const =0 |
Returns the maximum number of pending writes possible; note that this is NOT the current number of writes possible, it's the TOTAL number possible. | |
Static Public Attributes | |
static JETBYTE_CONSTEXPR LONG | NoLimit = 0 |
Used to specify that the write limiter has no limit to the number of connections that can be created. | |
Protected Member Functions | |
virtual | ~ILimitPendingWrites () |
We never delete instances of this interface; you must manage the lifetime of the class that implements it. |
virtual ~ILimitPendingWrites | ( | ) | [protected, virtual] |
We never delete instances of this interface; you must manage the lifetime of the class that implements it.
virtual bool TryIssueWrite | ( | ) | [pure virtual] |
Called to determine if a write can be issued. Returns true if the write can be issued and false if not. If it returns true then you MUST call WriteCompleted() when the write completes.
Implemented in CPendingWriteLimiter.
virtual void IssueWrite | ( | ) | [pure virtual] |
Called when a write is issued. Blocks until a write can be issued. You MUST call WriteCompleted() when the write completes.
Implemented in CPendingWriteLimiter.
virtual void WriteCompleted | ( | ) | [pure virtual] |
Called when a write has completed or failed if that write was issued after TryIssueWrite() has returned true, or after IssueWrite() has been called.
Implemented in CPendingWriteLimiter.
virtual LONG GetOverallLimit | ( | ) | const [pure virtual] |
Returns the maximum number of pending writes possible; note that this is NOT the current number of writes possible, it's the TOTAL number possible.
Implemented in CPendingWriteLimiter.
Used to specify that the write limiter has no limit to the number of connections that can be created.