Class DisruptorManager
java.lang.Object
com.iohao.net.extension.domain.DisruptorManager
Responsible for managing the Disruptor
- Author:
- 渔民小镇
- date:
- 2021-12-26
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidforEach(Consumer<com.lmax.disruptor.dsl.Disruptor<CommonEvent>> action) com.lmax.disruptor.dsl.Disruptor<CommonEvent> getDisruptor(Class<?> topic) Get the Disruptor corresponding to the domain message topicCollection<com.lmax.disruptor.dsl.Disruptor<CommonEvent>> Get all Disruptorvoidput(Class<?> topic, com.lmax.disruptor.dsl.Disruptor<CommonEvent> disruptor)
-
Constructor Details
-
DisruptorManager
public DisruptorManager()
-
-
Method Details
-
listDisruptor
Get all Disruptor- Returns:
- List of Disruptor
-
forEach
-
getDisruptor
Get the Disruptor corresponding to the domain message topic- Parameters:
topic- Domain message topic- Returns:
- Disruptor
-
put
-