AMPS C/C++ Client Class Reference AMPS C/C++ Client Version 5.3.5.6

Public Member Functions | List of all members
AMPS::FailedWriteHandler Class Referenceabstract

Class to handle when a client receives a duplicate publish message, or not entitled message. More...

`#include <ampsplusplus.hpp>`

## Public Member Functions
virtual void | failedWrite (const Message &message_, const char *reason_, size_t reasonLength_)=0
| Called when the server indicates a message could not be written. More...

## Detailed Description

Class to handle when a client receives a duplicate publish message, or not entitled message.

The default implementation just ignores the duplicates.

## Member Function Documentation

## ◆ failedWrite()

virtual void AMPS::FailedWriteHandler::failedWrite | ( | const Message & | message_,
|  | const char * | reason_,
|  | size_t | reasonLength_
| ) |  |
| pure virtual

Called when the server indicates a message could not be written.

If the message is present in the local Store, it is included.

Parameters

  message_ | The message from the store, or an unset message.
  reason_ | The reason for the failure as returned by AMPS.
  reasonLength_ | The length, in bytes, of the reason.

The documentation for this class was generated from the following file:

- include/amps/ampsplusplus.hpp