public class PublishAck extends ApiResponse<PublishAck>
json, NO_TYPE
Constructor and Description |
---|
PublishAck(Message msg)
This signature is public for testing purposes and is not intended to be used externally
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getDomain()
Gets the domain of a stream
|
long |
getSeqno()
Get the stream sequence number for the corresponding published message.
|
java.lang.String |
getStream()
Get the name of the stream a published message was stored in.
|
boolean |
isDuplicate()
Gets if the server detected the published message was a duplicate.
|
java.lang.String |
toString() |
getApiErrorCode, getDescription, getError, getErrorCode, getErrorObject, getType, hasError, throwOnHasError
public PublishAck(Message msg) throws java.io.IOException, JetStreamApiException
msg
- the message containing the Pub Ack Json https://github.com/nats-io/jsm.go/blob/main/schemas/jetstream/api/v1/pub_ack_response.jsonjava.io.IOException
- various IO exception such as timeout or interruptionJetStreamApiException
- the request had an error related to the requestpublic long getSeqno()
public java.lang.String getStream()
public java.lang.String getDomain()
public boolean isDuplicate()
public java.lang.String toString()
toString
in class java.lang.Object