ReviewLedgerDelegate
Delegate
Visual Basic
Public Delegate FunctionReviewLedgerDelegate
(
ByVal cmTransport As CMTransport,
ByVal subject As String,
ByVal message As Message,
ByVal closure As Object )
As Boolean
C#
public delegate boolReviewLedgerDelegate
(
CMTransport cmTransport,
string subject,
Message message,
object closure)
Purpose
Programs define this delegate to process ledger review messages.
Remarks
CMTransport.ReviewLedger calls this callback method once for each matching subject stored in the ledger.
To continue reviewing the ledger, return false
from this callback method. To stop reviewing the ledger, return true
from this callback method; CMTransport.ReviewLedger cancels the review and returns immediately.
Parameter |
Description |
|
This parameter receives the transport. |
|
This parameter receives the subject for this ledger item. |
|
This parameter receives a summary message describing the delivery status of messages in the ledger. The table below describes the fields of the summary message. |
|
This parameter receives closure data that the program supplied to CMTransport.ReviewLedger. |
Review Message
The following table presents the fields that review messages can contain.
Field Name |
Description |
subject
|
The subject that this message summarizes. This field has (wire format) datatype |
seqno_last_sent
|
The sequence number of the most recent message sent with this subject name. This field has (wire format) datatype |
total_msgs
|
The total number of messages stored at this subject name. This field has (wire format) datatype |
total_size
|
The total storage (in bytes) occupied by all messages with this subject name. If the ledger contains several messages with this subject name, then this field sums the storage space over all of them. This field has (wire format) datatype |
listener
|
Each summary message can contain one or more fields named This field has (wire format) datatype |
listener.name
|
Within each This field has (wire format) datatype |
listener.last_confirmed
|
Within each This field has (wire format) datatype |