public class AsyncEventDispatcher extends Object implements EventDispatcher
| 构造器和说明 |
|---|
AsyncEventDispatcher() |
AsyncEventDispatcher(boolean parallel) |
| 限定符和类型 | 方法和说明 |
|---|---|
void |
dispatch(DomainEvent event,
Iterable<EventListener> subscribers) |
ExecutorService |
getExecutor() |
boolean |
isParallel() |
void |
setExecutor(ExecutorService executor) |
void |
setParallel(boolean parallel) |
public AsyncEventDispatcher()
public AsyncEventDispatcher(boolean parallel)
public ExecutorService getExecutor()
public void setExecutor(ExecutorService executor)
public boolean isParallel()
public void setParallel(boolean parallel)
public void dispatch(DomainEvent event, Iterable<EventListener> subscribers)
dispatch 在接口中 EventDispatcherCopyright © 2022. All rights reserved.