The C++ framework for developing highly scalable, high performance servers on Windows platforms.

CLoggingAsyncFileWriterCallback Class Reference
[Asynchronous I/OFileIOLog files and the pluggable logging system]

Inheritance diagram for CLoggingAsyncFileWriterCallback:
Collaboration diagram for CLoggingAsyncFileWriterCallback:

List of all members.


Detailed Description

A class that implements CAsyncFileWriter::Callback and logs errors and when the pending write limit is reached.

Public Member Functions

 CLoggingAsyncFileWriterCallback ()
 CLoggingAsyncFileWriterCallback (const CLoggingAsyncFileWriterCallback &rhs)
CLoggingAsyncFileWriterCallbackoperator= (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.

Constructor & Destructor Documentation


Member Function Documentation

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.


Generated on Sun Sep 12 19:09:35 2021 for The Server Framework - v7.4 by doxygen 1.5.3