flush
Sends a command to AMPS that returns an acknowledgment when all previous commands from this client have been processed. This command helps applications that use AMPS determine when AMPS has received all of the messages that have been sent, making it safe for the client to exit.
Notice that the publishFlush
command available in the AMPS client libraries includes additional logic (when a PublishStore
is present) to ensure that messages published to AMPS have been safely persisted.
Header Fields
The following table contains the header fields available to a flush
command.
Returns
A flush
message specifying an AckType
of completed
or processed
will receive an ack
message when all previous messages from this client have been processed by AMPS.
The following table contains the acknowledgment messages that can be returned by a flush
command.
Last updated