Uses of Class
top.magstar.framework.events.models.EventResult
Packages that use EventResult
-
Uses of EventResult in top.magstar.framework.events.api
Methods in top.magstar.framework.events.api that return EventResultModifier and TypeMethodDescription<T> EventResultEventPublisher.publish(T event) 同步发布事件<T> EventResultEventPublisher.publish(T event, EventMetadata metadata) 同步发布事件(带元数据)default <T> EventResultEventPublisher.publishAndWait(T event, long timeoutMs) 发布事件并等待所有处理器完成Methods in top.magstar.framework.events.api that return types with arguments of type EventResultModifier and TypeMethodDescriptionEventPublisher.publishAsync(T event) 异步发布事件EventPublisher.publishAsync(T event, EventMetadata metadata) 异步发布事件(带元数据)default CompletableFuture<List<EventResult>> EventPublisher.publishBatch(List<?> events) 批量发布多个事件 -
Uses of EventResult in top.magstar.framework.events.models
Methods in top.magstar.framework.events.models that return EventResultModifier and TypeMethodDescriptionEventResult.Builder.build()static EventResult创建失败结果static EventResult创建失败结果(带异常)EventResult.merge(EventResult other) 合并两个结果static EventResultEventResult.mergeAll(List<EventResult> results) 合并多个结果static EventResultEventResult.noHandlers()创建无处理器结果static EventResultEventResult.success(int syncHandlers, int asyncHandlers) 创建成功结果static EventResultEventResult.timeout(long timeoutMs) 创建超时结果EventResult.withException(Exception exception) 添加异常EventResult.withExceptions(List<Exception> exceptions) 添加异常列表EventResult.withExecutionTime(long executionTimeMs) 设置执行时间EventResult.withReturnValue(Object returnValue) 设置返回值Methods in top.magstar.framework.events.models with parameters of type EventResultMethod parameters in top.magstar.framework.events.models with type arguments of type EventResultModifier and TypeMethodDescriptionstatic EventResultEventResult.mergeAll(List<EventResult> results) 合并多个结果Constructors in top.magstar.framework.events.models with parameters of type EventResult