mirror of
https://github.com/tiennm99/zfoo.git
synced 2026-10-14 06:18:16 +00:00
ref[event]: rename submit to post
This commit is contained in:
1 parent
ba3a074d61
commit
6658ecaa1a
7 files changed
+10
-10
No files matched your search
@@ -97,7 +97,7 @@ public abstract class EventBus {
|
||||
/**
|
||||
* Publish the event
|
||||
*/
|
||||
public static void submit(IEvent event) {
|
||||
public static void post(IEvent event) {
|
||||
doSubmit(event, receiverMapSync.get(event.getClass()));
|
||||
doSubmit(event, receiverMapAsync.get(event.getClass()));
|
||||
}
|
||||
|
||||
@@ -33,7 +33,7 @@ public class ApplicationTest {
|
||||
var context = new ClassPathXmlApplicationContext("application.xml");
|
||||
|
||||
// see receiver method of MyController1 and MyController2
|
||||
EventBus.submit(MyNoticeEvent.valueOf("我的事件"));
|
||||
EventBus.post(MyNoticeEvent.valueOf("我的事件"));
|
||||
|
||||
ThreadUtils.sleep(3000);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user