public class PublishAck extends ApiResponse<PublishAck>
jv, NO_TYPE, PARSE_ERROR_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.
|
getApiErrorCode, getDescription, getError, getErrorCode, getErrorObject, getJv, getType, hasError, parseMessage, throwOnHasError, toString
public PublishAck(Message msg) throws java.io.IOException, JetStreamApiException
msg
- the message containing the Pub Ack Json 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()