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

CAsyncFileWriter::Callback Class Reference
[Asynchronous I/OFileIO]

Inheritance diagram for CAsyncFileWriter::Callback:

List of all members.


Detailed Description

An interface for users of the CAsyncFileWriter to be notified of any errors that occur during the asynchronous write operations on the file.

Public Member Functions

virtual void OnError (CAsyncFileWriter *pInstance, const JetByteTools::Core::_tstring &where, DWORD lastError)=0
 Called when an error occurs during asynchronous processing or file closure.
virtual void OnError (CAsyncFileWriter *pInstance, const JetByteTools::Core::_tstring &where, const JetByteTools::Core::_tstring &message)=0
 Called when an error occurs during asynchronous processing or file closure.
virtual void OnLastWrite (CAsyncFileWriter *pInstance)=0
 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.
virtual void OnPendingWriteLimit (CAsyncFileWriter *pInstance)=0
 Called when the limit on the number of concurrent pending writes is reached.

Protected Member Functions

virtual ~Callback ()
 We never delete instances of this interface; you must manage the lifetime of the class that implements it.

Constructor & Destructor Documentation

virtual ~Callback (  )  [protected, virtual]

We never delete instances of this interface; you must manage the lifetime of the class that implements it.


Member Function Documentation

virtual void OnError ( CAsyncFileWriter pInstance,
const JetByteTools::Core::_tstring where,
DWORD  lastError 
) [pure virtual]

Called when an error occurs during asynchronous processing or file closure.

Implemented in CLoggingAsyncFileWriterCallback.

virtual void OnError ( CAsyncFileWriter pInstance,
const JetByteTools::Core::_tstring where,
const JetByteTools::Core::_tstring message 
) [pure virtual]

Called when an error occurs during asynchronous processing or file closure.

Implemented in CLoggingAsyncFileWriterCallback.

virtual void OnLastWrite ( CAsyncFileWriter pInstance  )  [pure 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.

Implemented in CLoggingAsyncFileWriterCallback.

virtual void OnPendingWriteLimit ( CAsyncFileWriter pInstance  )  [pure virtual]

Called when the limit on the number of concurrent pending writes is reached.

Implemented in CLoggingAsyncFileWriterCallback.


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