Commit Graph

38 Commits

Author SHA1 Message Date
Robinson
8fd2c427a4
updated tests package 2023-08-05 19:51:17 -06:00
Robinson
4101700d96
Updated for use of collections library and classUtils 2023-08-05 11:58:48 -06:00
Robinson
1b053755aa
Fixed issue with counter initial state 2023-08-05 11:57:26 -06:00
Robinson
f46d046957 added more code tests/comments 2021-04-09 20:20:37 +02:00
nathan
c87cc8120a Added more tests for super-type subscriptions 2019-06-18 21:29:02 +02:00
nathan
d473b4a5e6 Renamed Handler to Subscribe. The name Handler was confusing, and Subscribe is consistent with other Message/Event bus frameworks 2019-06-08 00:29:28 +02:00
nathan
6a2f5f8407 Updated to new constructor signature 2019-06-07 12:35:21 +02:00
nathan
89eee9ec9f The new disruptor queue is a LOT faster, and thus the concurrent tests were failing. Fixed the checks in the test to a better way of checking. 2019-06-07 12:35:04 +02:00
nathan
621140695f Fixed typos 2019-06-07 12:34:07 +02:00
nathan
0e31c4301f Changed package name. The standard package naming
convention with CamelCase is consistent across projects.
2017-09-22 09:34:15 +02:00
nathan
d230347584 Code cleanup 2016-02-10 19:04:08 +01:00
nathan
4686461bc7 Tweaked publication/dispatch and which threads (if async) get the subscriptions for the messages (previously, the calling thread did this. NOW whatever thread the dispatcher is in does this 2016-02-08 02:12:27 +01:00
nathan
95697164f5 ALL UNIT TESTS PASS. Fixed issues with handling subtypes (wasn't checking if we handle the type in addition to if subtypes are accepted. Because the class hierarchy doesn't always match subscription registered type, this was necessary. 2016-02-08 01:21:32 +01:00
nathan
8747aec23f code polish. Cleaned up documentation. Removed requirement to "start" the messagebus 2016-02-07 18:19:26 +01:00
nathan
11afd3d721 Added support for Weak references in subscriptions (for when a container is used, like spring, and we want to use automatic memory management for subs that might no longer exist in the parent container 2016-02-07 02:48:08 +01:00
nathan
89f47fdd8a Code polish/cleanup 2016-02-07 00:10:42 +01:00
nathan
969e21d762 Code polish and comments 2016-02-06 21:11:48 +01:00
nathan
7e262d1f0c Cleaned up multi-subs and multi-super-subs 2016-02-06 21:05:37 +01:00
nathan
d31e27eadd WIP - polishing 2016-02-06 16:15:16 +01:00
nathan
3226d8ae20 Moved performance tests into separate project 2016-02-06 02:54:35 +01:00
nathan
7822448427 code polish 2016-02-06 01:07:32 +01:00
nathan
618e4034f2 renamed package 2016-01-27 00:43:16 +01:00
nathan
3483205dfd cleaned up unitests 2016-01-25 15:07:57 +01:00
nathan
d84098fe9d Merge branch 'single_writer_wip_subscriptions' into single_writer
# Conflicts:
#	src/dorkbox/util/messagebus/subscription/Subscription.java
#	src/dorkbox/util/messagebus/subscription/SubscriptionManager.java
2016-01-25 15:00:56 +01:00
nathan
992b8f2f3b Supersubs now working w/ unit tests. wip multimessages. performancetest still fails w/ current subscription add() method 2016-01-25 14:56:54 +01:00
nathan
b4247731db WIP, getting subscriptions to use the single writer principle 2016-01-25 12:24:41 +01:00
nathan
61756547bb Code cleanup 2016-01-20 13:48:47 +01:00
nathan
e8efa4390b polish and reasonable performance. 2016-01-15 23:35:20 +01:00
nathan
eae63b3f8a GREAT performance with Disruptor values tweaked. WIP getting all collections lock-free 2016-01-15 02:26:23 +01:00
nathan
0ed9b1b243 Fixed issues with varity argumuent subscriptions, cleaned up model, removed "FirstArg" publisher (didn't make any sense. Publication should always use all arguments) 2016-01-14 15:08:49 +01:00
nathan
4a42f395a6 Added disruptor - AWESOME fast in speed tests. Has problems because of pub/sub lock contention when used in MessageBus 2016-01-13 18:05:43 +01:00
nathan
57cd06d164 Updated license info. Updated jctools MPMC array queue 2015-10-30 13:31:13 +01:00
nathan
68dc22b736 fixed generics 2015-07-22 10:37:40 +02:00
nathan
4e75e28802 Updated to use non-deprecated junit. added missing generic parameters 2015-07-07 00:36:23 +02:00
nathan
8f312a8012 Added intellij support. Compiled as java6, supports java8 ConcurrentHashMap 2015-06-28 00:16:38 +02:00
nathan
894da4c980 Changed visibility of queue. Made node items private 2015-06-26 20:59:43 +02:00
nathan
a790368ec4 Code polish and refactor to support multiple types of publishing and subscribing 2015-06-20 01:05:01 +02:00
nathan
2c2801e54f cleaned up source, comments. Extracted ErrorHandler. WIP java version adapter 2015-06-16 11:36:57 +02:00