public interface MessageDao
Modifier and Type | Method and Description |
---|---|
void |
clear() |
int |
count() |
int |
countIn(java.lang.String channelUrl) |
int |
delete(long messageId) |
int |
deleteAll(java.util.List<java.lang.String> channelUrls) |
int |
deleteAll(java.lang.String channelUrl) |
int |
deleteAllBefore(java.lang.String channelUrl,
long ts) |
int |
deleteAllByIds(java.util.List<java.lang.Long> messageIds) |
boolean |
deleteAllFailedMessages(BaseChannel channel) |
java.util.List<java.lang.String> |
deleteFailedMessages(BaseChannel channel,
java.util.List<BaseMessage> messages) |
java.util.List<BaseMessage> |
deleteInvalidAndLoadAllPendingMessages() |
java.util.List<java.lang.Boolean> |
deleteLocalMessages(java.util.List<BaseMessage> messages) |
BaseMessage |
get(long messageId) |
int |
getCountInChunk(GroupChannel channel) |
BaseMessage |
getOldestMessage() |
java.util.List<BaseMessage> |
loadAllFailedMessages() |
java.util.List<BaseMessage> |
loadAllPendingMessages() |
java.util.List<BaseMessage> |
loadAutoResendRegisteredMessages() |
java.util.List<BaseMessage> |
loadFailedMessages(BaseChannel channel) |
java.util.List<BaseMessage> |
loadMessages(long ts,
BaseChannel channel,
MessageListParams params) |
java.util.List<BaseMessage> |
loadPendingMessages(BaseChannel channel) |
long |
update(BaseMessage message) |
long |
upsert(BaseMessage message) |
boolean |
upsertAll(java.util.List<? extends BaseMessage> messages) |
int count()
int countIn(java.lang.String channelUrl)
int getCountInChunk(GroupChannel channel)
void clear()
int deleteAll(java.lang.String channelUrl)
int deleteAll(java.util.List<java.lang.String> channelUrls)
int deleteAllByIds(java.util.List<java.lang.Long> messageIds)
int delete(long messageId)
int deleteAllBefore(java.lang.String channelUrl, long ts)
long upsert(BaseMessage message)
long update(BaseMessage message)
boolean upsertAll(java.util.List<? extends BaseMessage> messages)
BaseMessage get(long messageId)
java.util.List<BaseMessage> loadMessages(long ts, BaseChannel channel, MessageListParams params)
BaseMessage getOldestMessage()
java.util.List<BaseMessage> loadPendingMessages(BaseChannel channel)
java.util.List<BaseMessage> loadFailedMessages(BaseChannel channel)
java.util.List<BaseMessage> deleteInvalidAndLoadAllPendingMessages()
java.util.List<BaseMessage> loadAllPendingMessages()
java.util.List<BaseMessage> loadAllFailedMessages()
java.util.List<java.lang.Boolean> deleteLocalMessages(java.util.List<BaseMessage> messages)
java.util.List<java.lang.String> deleteFailedMessages(BaseChannel channel, java.util.List<BaseMessage> messages)
boolean deleteAllFailedMessages(BaseChannel channel)
java.util.List<BaseMessage> loadAutoResendRegisteredMessages()
Copyright © 2021, Sendbird or its affiliates. All rights reserved.
Report a bug or request a feature
For further developer documentation, see Chat SDK Documentation. That documentation contains more detailed descriptions, conceptual overviews, definitions of terms, and code examples.