public class InternalConfig
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_CONVERSATION_SYNCED |
static int |
DEFAULT_EVENT_QUERIES |
static int |
DEFAULT_EVENTS_PER_QUERY |
static int |
DEFAULT_MESSAGES_PER_PAGE |
static int |
DEFAULT_PART_DATA_SIZE |
| Constructor and Description |
|---|
InternalConfig()
Recommended constructor.
|
| Modifier and Type | Method and Description |
|---|---|
InternalConfig |
limitConversationSynced(int conversationSynced)
When the
RxChatServiceAccessor.messaging().synchroniseStore() will be called the SDK will sync only this number of most recent conversations. |
InternalConfig |
limitEventQueries(int eventQueries)
When syncing the SDK will impose a limit on number of sequential events queries per conversation.
|
InternalConfig |
limitEventsPerQuery(int eventsPerQuery)
When syncing the SDK calling events query internally will impose a limit on events received in a single call.
|
InternalConfig |
limitMessagesPerPage(int messagesPerPage)
Calling
RxChatServiceAccessor.messaging().getPreviousMessages(String) will query messages with a limit of messages in a single call equal to this number. |
InternalConfig |
limitPartDataSize(int partDataSize)
When sending a message with Parts if the size of a part exceeds this limit on number of characters it will be automatically uploaded as an attachment.
|
java.lang.String |
toString() |
public static final int DEFAULT_MESSAGES_PER_PAGE
public static final int DEFAULT_EVENTS_PER_QUERY
public static final int DEFAULT_EVENT_QUERIES
public static final int DEFAULT_PART_DATA_SIZE
public static final int DEFAULT_CONVERSATION_SYNCED
public InternalConfig limitMessagesPerPage(int messagesPerPage)
RxChatServiceAccessor.messaging().getPreviousMessages(String) will query messages with a limit of messages in a single call equal to this number.
The default is DEFAULT_MESSAGES_PER_PAGEmessagesPerPage - Maximum number of messages in a nex messages page obtained from the server.public InternalConfig limitEventsPerQuery(int eventsPerQuery)
DEFAULT_EVENTS_PER_QUERYeventsPerQuery - Limit of event query.public InternalConfig limitEventQueries(int eventQueries)
DEFAULT_EVENT_QUERIESeventQueries - Limit of event queries per conversation when synchronising.public InternalConfig limitPartDataSize(int partDataSize)
DEFAULT_PART_DATA_SIZEpartDataSize - Limit of part data size.public InternalConfig limitConversationSynced(int conversationSynced)
RxChatServiceAccessor.messaging().synchroniseStore() will be called the SDK will sync only this number of most recent conversations.
The default is DEFAULT_CONVERSATION_SYNCEDconversationSynced - The default ispublic java.lang.String toString()
toString in class java.lang.Object