@ProviderType public static class PersistentMessagePublisher.PublishReceipt extends Object implements Serializable
| Modifier and Type | Method and Description |
|---|---|
PubSubPlusClientException |
getException()
Gets exception if any, indicating a failure to deliver or persist a message to the broker.
|
OutboundMessage |
getMessage()
Retrieves message associated with a Receipt.
|
long |
getTimeStamp()
Retrieves the timestamp, number of milliseconds from the Epoch time (time since
1970-01-01T00:00:00Z).
|
Object |
getUserContext()
Retrieves the context associated with an action if provided during publishing.
|
boolean |
isPersisted()
Gets information if message reached a broker and persistence confirmation was received back.
|
String |
toString()
Converts the Publish Receipt to a string representation does not include
userContext. |
public Object getUserContext()
null if there
is nonepublic long getTimeStamp()
public OutboundMessage getMessage()
public PubSubPlusClientException getException()
PubSubPlusClientException if the message was not delivered or persisted,
otherwise null. For additional details, refer to the cause of the exception. Examples
of possible causes include: publisher termination, broker delivery failure due to Publish ACL
Denied, or delivery timeout.public boolean isPersisted()
falsepublic String toString()
userContext.Copyright 2019-2026 Solace Corporation. All rights reserved.