Skip to main content

EventHandler - Reactor

Description

The ReactorEventHandler will process all events asynchronous in a thread-pool with at least 4 threads.

Check out the following class if you want to customize the parameters used when building a ReactorEventHandler instance:

Dependencies

build.gradle
dependencies {
implementation 'com.github.philippheuer.events4j:events4j-handler-reactor:0.12.1'
}

Set as default in Twitch4J and for eventManager.onEvent

TwitchClient twitchClient = TwitchClientBuilder.builder()
.withDefaultEventHandler(ReactorEventHandler.class)
.build();