public interface EventPublisher
| 限定符和类型 | 方法和说明 |
|---|---|
<E> void |
publish(E event) |
default <E> CompletionStage<Void> |
publishAsync(E event) |
default <E> CompletionStage<Void> |
publishAsync(E event,
Executor executor) |
<E> void publish(@Nonnull
E event)
@Nonnull default <E> CompletionStage<Void> publishAsync(@Nonnull E event)
@Nonnull default <E> CompletionStage<Void> publishAsync(@Nonnull E event, @Nonnull Executor executor)
Copyright © 2024. All rights reserved.