Public Member Functions | |
CLoggingAsyncFileWriterCallback () | |
CLoggingAsyncFileWriterCallback (const CLoggingAsyncFileWriterCallback &rhs) | |
CLoggingAsyncFileWriterCallback & | operator= (const CLoggingAsyncFileWriterCallback &rhs) |
void | OnError (CAsyncFileWriter *pInstance, const JetByteTools::Core::_tstring &where, DWORD lastError) override |
Called when an error occurs during asynchronous processing or file closure. | |
void | OnError (CAsyncFileWriter *pInstance, const JetByteTools::Core::_tstring &where, const JetByteTools::Core::_tstring &message) override |
Called when an error occurs during asynchronous processing or file closure. | |
void | OnLastWrite (CAsyncFileWriter *pInstance) override |
Called when the final write occurs after Shutdown() has been called on the file writer. You can use this to take an action with the file writer when the last pending write completes rather than blocking a thread to Wait() for the situation. | |
void | OnPendingWriteLimit (CAsyncFileWriter *pInstance) override |
Called when the limit on the number of concurrent pending writes is reached. |
CLoggingAsyncFileWriterCallback | ( | const CLoggingAsyncFileWriterCallback & | rhs | ) |
CLoggingAsyncFileWriterCallback& operator= | ( | const CLoggingAsyncFileWriterCallback & | rhs | ) |
void OnError | ( | CAsyncFileWriter * | pInstance, | |
const JetByteTools::Core::_tstring & | where, | |||
DWORD | lastError | |||
) | [override, virtual] |
Called when an error occurs during asynchronous processing or file closure.
Implements CAsyncFileWriter::Callback.
void OnError | ( | CAsyncFileWriter * | pInstance, | |
const JetByteTools::Core::_tstring & | where, | |||
const JetByteTools::Core::_tstring & | message | |||
) | [override, virtual] |
Called when an error occurs during asynchronous processing or file closure.
Implements CAsyncFileWriter::Callback.
void OnLastWrite | ( | CAsyncFileWriter * | pInstance | ) | [override, virtual] |
Called when the final write occurs after Shutdown() has been called on the file writer. You can use this to take an action with the file writer when the last pending write completes rather than blocking a thread to Wait() for the situation.
Implements CAsyncFileWriter::Callback.
void OnPendingWriteLimit | ( | CAsyncFileWriter * | pInstance | ) | [override, virtual] |
Called when the limit on the number of concurrent pending writes is reached.
Implements CAsyncFileWriter::Callback.