- java.lang.Object
-
- org.redkale.boot.ModuleEngine
-
- org.redkale.mq.spi.MessageModuleEngine
-
public class MessageModuleEngine extends ModuleEngine
- 作者:
- zhangjx
-
-
字段概要
-
从类继承的字段 org.redkale.boot.ModuleEngine
application, environment, logger, resourceFactory
-
-
构造器概要
构造器 构造器 说明 MessageModuleEngine(Application application)
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 org.redkale.asm.AsmMethodBoostcreateAsmMethodBoost(boolean remote, Class serviceClass)动态扩展类的方法MessageAgentfindMessageAgent(String mqName)AnyValue.MergeEnummergeAppConfigStrategy(String path, String key, AnyValue val1, AnyValue val2)判断模块的配置项合并策略, 返回null表示模块不识别此配置项voidonAppPostInit()结束Application.init方法前被调用voidonEnvironmentChanged(String namespace, List<ResourceEvent> events)配置项变更时被调用voidonEnvironmentLoaded(Properties allProps)配置项加载后被调用voidonServersPostStart()服务全部启动后被调用voidonServersPostStop()服务全部停掉后被调用voidonServersPreStop()服务全部停掉前被调用voidonServicePostInit(NodeServer server, Service service)执行Service.init方法后被调用
-
-
-
构造器详细资料
-
MessageModuleEngine
public MessageModuleEngine(Application application)
-
-
方法详细资料
-
createAsmMethodBoost
public org.redkale.asm.AsmMethodBoost createAsmMethodBoost(boolean remote, Class serviceClass)动态扩展类的方法- 覆盖:
createAsmMethodBoost在类中ModuleEngine- 参数:
remote- 是否远程模式serviceClass- 类- 返回:
- 方法动态扩展器
-
mergeAppConfigStrategy
public AnyValue.MergeEnum mergeAppConfigStrategy(String path, String key, AnyValue val1, AnyValue val2)
判断模块的配置项合并策略, 返回null表示模块不识别此配置项- 覆盖:
mergeAppConfigStrategy在类中ModuleEngine- 参数:
path- 配置项路径key- 配置项名称val1- 配置项原值val2- 配置项新值- 返回:
- MergeEnum
-
onEnvironmentLoaded
public void onEnvironmentLoaded(Properties allProps)
配置项加载后被调用- 覆盖:
onEnvironmentLoaded在类中ModuleEngine- 参数:
allProps- 配置项全量
-
onAppPostInit
public void onAppPostInit()
结束Application.init方法前被调用- 覆盖:
onAppPostInit在类中ModuleEngine
-
onEnvironmentChanged
public void onEnvironmentChanged(String namespace, List<ResourceEvent> events)
配置项变更时被调用- 覆盖:
onEnvironmentChanged在类中ModuleEngine- 参数:
namespace- 命名空间events- 变更项
-
onServicePostInit
public void onServicePostInit(NodeServer server, Service service)
执行Service.init方法后被调用- 覆盖:
onServicePostInit在类中ModuleEngine- 参数:
server- NodeServerservice- Service
-
onServersPostStart
public void onServersPostStart()
服务全部启动后被调用- 覆盖:
onServersPostStart在类中ModuleEngine
-
onServersPreStop
public void onServersPreStop()
服务全部停掉前被调用- 覆盖:
onServersPreStop在类中ModuleEngine
-
onServersPostStop
public void onServersPostStop()
服务全部停掉后被调用- 覆盖:
onServersPostStop在类中ModuleEngine
-
findMessageAgent
public MessageAgent findMessageAgent(String mqName)
-
-