public class MessageSourceRdb extends Object implements MessageSource
| 构造器和说明 |
|---|
MessageSourceRdb(org.noear.weed.DbContext db,
org.noear.weed.cache.ICacheServiceEx cache,
Logger log) |
public MessageSourceRdb(org.noear.weed.DbContext db,
org.noear.weed.cache.ICacheServiceEx cache,
Logger log)
public boolean hasMessage(String msg_key) throws SQLException
hasMessage 在接口中 MessageSourceSQLExceptionpublic void setMessageAsCancel(String msg_key) throws SQLException
setMessageAsCancel 在接口中 MessageSourceSQLExceptionpublic void setMessageAsSucceed(String msg_key) throws SQLException
setMessageAsSucceed 在接口中 MessageSourceSQLExceptionpublic void setDistributionAsCancel(String msg_key, String subscriber_key) throws SQLException
setDistributionAsCancel 在接口中 MessageSourceSQLExceptionpublic void setDistributionAsSucceed(String msg_key, String subscriber_key) throws SQLException
setDistributionAsSucceed 在接口中 MessageSourceSQLExceptionpublic long addMessage(int topic_id,
String topic_name,
String content)
throws Exception
addMessage 在接口中 MessageSourceExceptionpublic long addMessage(String msg_key, String trace_id, String tags, int topic_id, String topic_name, String content, Date plan_time) throws Exception
addMessage 在接口中 MessageSourceExceptionpublic List<MessageModel> getMessageListOfPending(int rows, long dist_nexttime) throws SQLException
getMessageListOfPending 在接口中 MessageSourceSQLExceptionpublic void setMessageRouteState(MessageModel msg, boolean dist_routed)
setMessageRouteState 在接口中 MessageSourcepublic boolean setMessageState(MessageModel msg, MessageState state)
setMessageState 在接口中 MessageSourcestate - -2无派发对象 ; -1:忽略;0:未处理;1处理中;2已完成;3派发超次数public boolean setMessageState(MessageModel msg, MessageState state, long dist_nexttime)
setMessageState 在接口中 MessageSourcepublic boolean setMessageRepet(MessageModel msg, MessageState state)
setMessageRepet 在接口中 MessageSourcepublic void addDistributionNoLock(MessageModel msg, SubscriberModel subs) throws SQLException
addDistributionNoLock 在接口中 MessageSourceSQLExceptionpublic List<DistributionModel> getDistributionListByMsg(long msg_id) throws SQLException
getDistributionListByMsg 在接口中 MessageSourceSQLExceptionpublic boolean setDistributionState(MessageModel msg, DistributionModel dist, MessageState state)
setDistributionState 在接口中 MessageSourcepublic MessageModel getMessageByKey(String msg_key) throws SQLException
getMessageByKey 在接口中 MessageSourceSQLExceptionpublic MessageModel getMessageById(long msg_id) throws SQLException
getMessageById 在接口中 MessageSourceSQLExceptionpublic List<MessageModel> getMessageList(int dist_count, int topic_id) throws SQLException
getMessageList 在接口中 MessageSourceSQLExceptionpublic List<MessageModel> getMessageList(int _m, String key) throws SQLException
getMessageList 在接口中 MessageSourceSQLExceptionpublic boolean setMessageAsPending(List<Object> ids) throws SQLException
MessageSourcesetMessageAsPending 在接口中 MessageSourceSQLExceptionpublic List<DistributionModel> getDistributionListByMsgIds(List<Object> ids) throws SQLException
MessageSourcegetDistributionListByMsgIds 在接口中 MessageSourceSQLExceptionpublic boolean setDistributionReceiveUrl(long dist_id,
String receive_url)
throws SQLException
MessageSourcesetDistributionReceiveUrl 在接口中 MessageSourceSQLExceptionpublic boolean setMessageAsCancel(List<Object> ids) throws SQLException
MessageSourcesetMessageAsCancel 在接口中 MessageSourceSQLExceptionpublic void clear(int lteDate)
throws Exception
clear 在接口中 MessageSourceExceptionpublic long reset(int seconds)
throws SQLException
reset 在接口中 MessageSourceSQLExceptionCopyright © 2021. All rights reserved.