md_5
f9b75c4a3a
Update tests to JUnit 5
2023-09-23 18:44:14 +10:00
md_5
ad8a8ef5a9
Increase per-listener event bus warning time
2022-01-01 09:22:26 +11:00
Janmm14
2479fab632
#3221 : Use computeIfAbsent method in EventBus
2021-12-19 09:50:48 +11:00
Janmm14
425ee4e142
#3215 : Add time measurement per event listener method
2021-12-05 08:51:33 +11:00
Janmm14
d49e97c423
#3099 : Improve toArray calls by using an empty array as parameter.
...
From Intellij IDEA inspections: Since late updates of OpenJDK 6 this call was intrinsified, making the performance of the empty array version the same and sometimes even better, compared to the pre-sized version.
2021-05-28 08:23:43 +10:00
md_5
5823f47467
#3090 : Register events in parent classes
2021-05-19 18:41:09 +10:00
md_5
d20e622b7b
Apply checkstyle to javadoc
2020-01-05 11:25:56 +11:00
md_5
2f547f73f7
Fix some javadoc warnings
2020-01-05 11:17:11 +11:00
Tux
59208aad86
Improve EventBus by removing read locking.
...
This is primarily done by using ConcurrentHashMap, which has lock-free reads and thread-contention-based writes. Only one thread at a time can register threads, however, as baking events isn't thread safe (and there's no reason to make it thread-safe anyway).
My own benchmarks indicate 1.4-2.2 million operations/ms throughput and approximately ~1ns/event post for four threads posting events.
2015-09-05 13:33:18 +10:00
Joe
918d7229c2
Fix Deadlock in EventBus post #1493
2015-06-05 13:03:43 +10:00
md_5
3e26eecd4e
Fix formatting issue pointed out in #1370
2015-02-14 18:21:24 +11:00
md_5
7c1f232e85
Update depend versions, limit use of most Java 1.7 APIs.
2015-02-08 13:07:41 +11:00
md_5
2b49358bea
Fix EventBus unit test.
2015-02-08 12:48:26 +11:00
md_5
db7f3c770d
Fix EventBus when used with Byte.MAX_PRIORITY - closes #910 . Also includes additional unit test cases to cover any future regressions.
2014-03-04 20:49:53 +11:00
md_5
1342baed47
Use fluid bytes instead of enum + format.
2013-09-09 14:36:48 +10:00
Dabo Ross
e3a7490bcd
Fix formatting error - not sure how that happened
2013-09-09 14:27:23 +10:00
Dabo Ross
3e8693793c
Add multiple listeners to EventPriorityTest
2013-09-09 14:27:23 +10:00
Dabo Ross
bb47aba682
Add UnregisteringListenerTest
2013-09-09 14:27:23 +10:00
Dabo Ross
d0e5ee4e09
Don't try to bake handlers when there are no more handlers. Remove them instead!
2013-09-09 14:27:23 +10:00
Dabo Ross
07e330b005
Create test for event priorities
2013-09-09 14:27:23 +10:00
Dabo Ross
024288e587
Added a Map<Class<?>, EventHandlerMethod[]> and implemented using it. I believe this should have a positive performance effect.
2013-09-09 14:27:23 +10:00
Dabo Ross
53a6bb1dee
Added EventHandlerMethod wrapper for Listener and Method
2013-09-09 14:27:23 +10:00
Dabo Ross
0f06b2c4e0
Implement usage of EventPriority in EventBus
2013-09-09 14:27:23 +10:00
Dabo Ross
d3c1acce83
Add EventPriority method to EventHandler
2013-09-09 14:27:23 +10:00
Dabo Ross
eaea090d37
Add EventPriority
2013-09-09 14:27:22 +10:00
md_5
ffbebaff69
Remove old @Subscribe event handling
2013-07-04 09:43:32 +10:00
md_5
9a0da50e6c
Fix formatting
2013-05-16 16:49:14 +10:00
md_5
21a354fa75
Add home grown event bus
2013-05-14 11:38:39 +10:00