io.nats.client.support.NatsJetStreamConstants Maven / Gradle / Ivy
package io.nats.client.support;
public interface NatsJetStreamConstants {
/**
* The maximum pull size [NO LONGER ENFORCED]
*/
@Deprecated
int MAX_PULL_SIZE = 256;
/**
* The Max History Per Key KV key
*/
int MAX_HISTORY_PER_KEY = 64;
String PREFIX_DOLLAR_JS_DOT = "$JS.";
String PREFIX_API = "API";
String DEFAULT_API_PREFIX = "$JS.API.";
String JS_ACK_SUBJECT_PREFIX = "$JS.ACK.";
// JSAPI_ACCOUNT_INFO is for obtaining general information about JetStream.
String JSAPI_ACCOUNT_INFO = "INFO";
// JSAPI_CONSUMER_CREATE is used to create consumers.
String JSAPI_CONSUMER_CREATE = "CONSUMER.CREATE.%s";
// JSAPI_DURABLE_CREATE is used to create durable consumers.
String JSAPI_DURABLE_CREATE = "CONSUMER.DURABLE.CREATE.%s.%s";
String JSAPI_CONSUMER_CREATE_V290 = "CONSUMER.CREATE.%s.%s";
String JSAPI_CONSUMER_CREATE_V290_W_FILTER = "CONSUMER.CREATE.%s.%s.%s";
// JSAPI_CONSUMER_INFO is used to create consumers.
String JSAPI_CONSUMER_INFO = "CONSUMER.INFO.%s.%s";
// JSAPI_CONSUMER_MSG_NEXT is the prefix for the request next message(s) for a consumer in worker/pull mode.
String JSAPI_CONSUMER_MSG_NEXT = "CONSUMER.MSG.NEXT.%s.%s";
// JSAPI_CONSUMER_DELETE is used to delete consumers.
String JSAPI_CONSUMER_DELETE = "CONSUMER.DELETE.%s.%s";
// JSAPI_CONSUMER_PAUSE is used to pause/resume consumers.
String JSAPI_CONSUMER_PAUSE = "CONSUMER.PAUSE.%s.%s";
// JSAPI_CONSUMER_NAMES is used to return a list of consumer names
String JSAPI_CONSUMER_NAMES = "CONSUMER.NAMES.%s";
// JSAPI_CONSUMER_LIST is used to return all detailed consumer information
String JSAPI_CONSUMER_LIST = "CONSUMER.LIST.%s";
// JSAPI_STREAM_CREATE is the endpoint to create new streams.
String JSAPI_STREAM_CREATE = "STREAM.CREATE.%s";
// JSAPI_STREAM_INFO is the endpoint to get information on a stream.
String JSAPI_STREAM_INFO = "STREAM.INFO.%s";
// JSAPI_STREAM_UPDATE is the endpoint to update existing streams.
String JSAPI_STREAM_UPDATE = "STREAM.UPDATE.%s";
// JSAPI_STREAM_DELETE is the endpoint to delete streams.
String JSAPI_STREAM_DELETE = "STREAM.DELETE.%s";
// JSAPI_STREAM_PURGE is the endpoint to purge streams.
String JSAPI_STREAM_PURGE = "STREAM.PURGE.%s";
// JSAPI_STREAM_NAMES is the endpoint that will return a list of stream names
String JSAPI_STREAM_NAMES = "STREAM.NAMES";
// JSAPI_STREAM_LIST is the endpoint that will return all detailed stream information
String JSAPI_STREAM_LIST = "STREAM.LIST";
// JSAPI_MSG_GET is the endpoint to get a message.
String JSAPI_MSG_GET = "STREAM.MSG.GET.%s";
// JSAPI_DIRECT_GET is the endpoint to directly get a message.
String JSAPI_DIRECT_GET = "DIRECT.GET.%s";
// JSAPI_DIRECT_GET_LAST is the preferred endpoint to direct get a last by subject message
String JSAPI_DIRECT_GET_LAST = "DIRECT.GET.%s.%s";
// JSAPI_MSG_DELETE is the endpoint to remove a message.
String JSAPI_MSG_DELETE = "STREAM.MSG.DELETE.%s";
String MSG_ID_HDR = "Nats-Msg-Id";
String EXPECTED_STREAM_HDR = "Nats-Expected-Stream";
String EXPECTED_LAST_SEQ_HDR = "Nats-Expected-Last-Sequence";
String EXPECTED_LAST_MSG_ID_HDR = "Nats-Expected-Last-Msg-Id";
String EXPECTED_LAST_SUB_SEQ_HDR = "Nats-Expected-Last-Subject-Sequence";
String LAST_CONSUMER_HDR = "Nats-Last-Consumer";
String LAST_STREAM_HDR = "Nats-Last-Stream";
String CONSUMER_STALLED_HDR = "Nats-Consumer-Stalled";
String MSG_SIZE_HDR = "Nats-Msg-Size";
String ROLLUP_HDR = "Nats-Rollup";
String ROLLUP_HDR_SUBJECT = "sub";
String ROLLUP_HDR_ALL = "all";
String NATS_STREAM = "Nats-Stream";
String NATS_SEQUENCE = "Nats-Sequence";
String NATS_TIMESTAMP = "Nats-Time-Stamp";
String NATS_SUBJECT = "Nats-Subject";
String NATS_LAST_SEQUENCE = "Nats-Last-Sequence";
String[] MESSAGE_INFO_HEADERS = new String[]{NATS_SUBJECT, NATS_SEQUENCE, NATS_TIMESTAMP, NATS_STREAM, NATS_LAST_SEQUENCE};
String NATS_PENDING_MESSAGES = "Nats-Pending-Messages";
String NATS_PENDING_BYTES = "Nats-Pending-Bytes";
int JS_CONSUMER_NOT_FOUND_ERR = 10014;
int JS_NO_MESSAGE_FOUND_ERR = 10037;
int JS_WRONG_LAST_SEQUENCE = 10071;
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy