| 限定符和类型 | 类和说明 |
|---|---|
static class |
MQContext.ActionType |
| 限定符和类型 | 字段和说明 |
|---|---|
static String |
APPLICATION |
static String |
MQ_CONTEXT_IGNORE_LOGGING |
| 限定符和类型 | 方法和说明 |
|---|---|
static void |
close() |
int |
getBatchSize() |
long |
getConsumeMaxInterval() |
int |
getConsumeMaxRetryTimes() |
String |
getGroupName() |
String |
getInstance() |
int |
getMaxProcessThreads() |
Properties |
getProfileProperties() |
String |
getProfileProperties(String key) |
String |
getProviderName() |
String |
getStateCheckUrl() |
boolean |
hasInternalTopics() |
boolean |
isAsyncConsumeEnabled()
是否异步处理消息
|
boolean |
isConsumerEnabled() |
boolean |
isInternalTopicMode(String topic) |
boolean |
isLogEnabled() |
boolean |
isProducerEnabled() |
boolean |
matchedOnFilter(MQMessage message) |
static void |
processMessageLog(MQContext context,
MQMessage message,
MQContext.ActionType actionType,
Throwable ex) |
String |
rebuildWithNamespace(String name) |
String |
toString() |
void |
updateConfigs(Properties properties) |
public MQContext(String instance)
public String getInstance()
public String getProviderName()
public String getGroupName()
public boolean isProducerEnabled()
public boolean isConsumerEnabled()
public Properties getProfileProperties()
public boolean isAsyncConsumeEnabled()
public boolean isLogEnabled()
public int getMaxProcessThreads()
public long getConsumeMaxInterval()
public int getConsumeMaxRetryTimes()
public int getBatchSize()
public String getStateCheckUrl()
public boolean matchedOnFilter(MQMessage message)
public void updateConfigs(Properties properties)
public static void processMessageLog(MQContext context, MQMessage message, MQContext.ActionType actionType, Throwable ex)
public boolean hasInternalTopics()
public boolean isInternalTopicMode(String topic)
public static void close()
Copyright © 2025. All rights reserved.