@Immutable final class MessageSettings extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
MessageSettings.Builder
A MessageSettings builder.
|
Modifier and Type | Field and Description |
---|---|
private static int |
DEFAULT_MAX_BATCH_COUNT |
private static int |
DEFAULT_MAX_DOCUMENT_SIZE |
private static int |
DEFAULT_MAX_MESSAGE_SIZE |
private int |
maxBatchCount |
private int |
maxDocumentSize |
private int |
maxMessageSize |
Modifier | Constructor and Description |
---|---|
private |
MessageSettings(MessageSettings.Builder builder) |
Modifier and Type | Method and Description |
---|---|
static MessageSettings.Builder |
builder()
Gets the builder
|
int |
getMaxBatchCount()
Gets the maximum number of items in a batch allowed.
|
int |
getMaxDocumentSize()
Gets the maximum document size allowed.
|
int |
getMaxMessageSize()
Gets the maximum message size allowed.
|
private static final int DEFAULT_MAX_DOCUMENT_SIZE
private static final int DEFAULT_MAX_MESSAGE_SIZE
private static final int DEFAULT_MAX_BATCH_COUNT
private final int maxDocumentSize
private final int maxMessageSize
private final int maxBatchCount
private MessageSettings(MessageSettings.Builder builder)
public static MessageSettings.Builder builder()
public int getMaxDocumentSize()
public int getMaxMessageSize()
public int getMaxBatchCount()