Interface FlowCommunicationEventBus
- All Superinterfaces:
CommonDecorator, FlowCommon
- All Known Subinterfaces:
FlowContext
- All Known Implementing Classes:
DefaultFlowContext
FlowCommunicationEventBus
- Since:
- 25.1
- Author:
- 渔民小镇
- date:
- 2025-10-09
-
Method Summary
Modifier and TypeMethodDescriptiondefault void[Async] Sends an event to all subscribers.default void[Async] Sends an event message to subscribers in the current process and remote processes.default voidfireAnySync(Object eventSource) Sends an event message to subscribers in the current process and remote processes.default void[Async] Sends an event message to subscribers of all logic servers in the current process.default voidfireLocalSync(Object eventSource) [Sync] Sends an event message to subscribers of all logic servers in the current process.default void[Async] Sends an event message only to subscribers of the current EventBus.default voidfireMeSync(Object eventSource) [Sync] Sends an event message only to subscribers of the current EventBus.default void[Sync] Sends an event to all subscribers.default EventBusdefault EventBusMessageofEventBusMessage(Object eventSource) Methods inherited from interface CommonDecorator
getCommunicationAggregationMethods inherited from interface FlowCommon
execute, executeUser, executeVirtual, getBarSkeleton, getCmdInfo, getCommunicationType, getCurrentExecutor, getCurrentThreadExecutor, getExecutorRegion, getRequest, getServer, getServerId, getThreadIndex, getTraceId, getUserId, getUserThreadExecutor, getVirtualThreadExecutor, setMethodResult, setUserId
-
Method Details
-
getEventBus
-
ofEventBusMessage
-
fire
[Async] Sends an event to all subscribers.- Parameters:
eventSource- The event source
-
fireSync
[Sync] Sends an event to all subscribers.- Parameters:
eventSource- The event source
-
fireAny
[Async] Sends an event message to subscribers in the current process and remote processes. If multiple logic servers of the same type exist, the event will only be sent to one instance.- Parameters:
eventSource- The event source
-
fireAnySync
Sends an event message to subscribers in the current process and remote processes. If multiple logic servers of the same type exist, the event will only be sent to one instance.- Parameters:
eventSource- The event source
-
fireLocal
[Async] Sends an event message to subscribers of all logic servers in the current process.- Parameters:
eventSource- The event source
-
fireLocalSync
[Sync] Sends an event message to subscribers of all logic servers in the current process.- Parameters:
eventSource- The event source
-
fireMe
[Async] Sends an event message only to subscribers of the current EventBus.- Parameters:
eventSource- The event source
-
fireMeSync
[Sync] Sends an event message only to subscribers of the current EventBus.- Parameters:
eventSource- The event source
-