public class PublishAck extends ApiResponse<PublishAck>
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 |
|---|---|
@Nullable java.lang.String |
getBatchId()
Gets the batch id.
|
int |
getBatchSize()
Gets the batch size.
|
@Nullable java.lang.String |
getDomain()
Gets the domain of a stream
|
long |
getSeqno()
Get the stream sequence number for the corresponding published message.
|
@NonNull java.lang.String |
getStream()
Get the name of the stream a published message was stored in.
|
@Nullable java.lang.String |
getVal()
Gets a counter value.
|
boolean |
isDuplicate()
Gets if the server detected the published message was a duplicate.
|
getApiErrorCode, getDescription, getError, getErrorCode, getErrorObject, getJv, getType, hasError, throwOnHasError, toStringpublic 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 @NonNull java.lang.String getStream()
public @Nullable java.lang.String getDomain()
public boolean isDuplicate()
public @Nullable java.lang.String getVal()
public @Nullable java.lang.String getBatchId()
public int getBatchSize()