v1.0.0-alpha.19
Pre-release
Pre-release
PhilippHeuer
released this
29 Feb 16:22
·
823 commits
to master
since this release
Modifications
- sleep one second in the pubsub worker thread instead of 100ms
- add helix.createStreamMarker method
- merged initial Webhooks support #102
- add support for a custom withChatQueueSize / withChatRateLimit
- merged feature/channelpoints-pubsub #104
- merged turikhay/feature/pubsub-topic-unsubscribe to subsubscribe from pubsub topics
- add raw message to channel message / channel action events
- implement AutoClosable to shutdown twitch4j
- upgrade to modular event manager (https://github.com/PhilippHeuer/events4j/tree/v0.7.1)
Fixes
- only call getStreams method if we're at least listening for one channel
- also shutdown okhttpClient in auth.TwitchIdentityProvider (was missing before)
- use waitStrategy.sleeping in TopicProcessor to reduce cpu usage (from .18)
Migration
There were major changes concerning the eventManager to make it modular and android compatible - and to allow custom eventHandlers (SpringEvents, Reactor, Annotation-Based, ...) - https://github.com/PhilippHeuer/events4j/tree/v0.7.1
Migration Steps:
eventManager.dispatchEvent(eventObject)
was renamed toeventManager.publish(eventObject)
- you will now need to specify the eventHandler when subscribing to a event, ie.
java eventManager.getEventHandler(SimpleEventHandler.class).onEvent(EventType.class, event -> { // your code ... });
Please check out this site on available handlers and their usage: https://twitch4j.gitlab.io/twitch4j/events/
Another new feature is that you'r now able to dispose eventHandlers if they are no longer needed.
Docs
- added informaiton on how to configure logging
- updated to reflect the eventManager changes