| Package | Description |
|---|---|
| io.lettuce.core.event |
Event publishing and subscription.
|
| Modifier and Type | Method and Description |
|---|---|
default <T extends Event> |
EventBus.subscribe(Class<T> type,
Consumer<T> listener)
Subscribes to
Events of a given type published to the bus. |
default Subscription |
EventBus.subscribe(Consumer<Event> listener)
Subscribes to all
Events published to the bus. |
Copyright © 2026 lettuce.io. All rights reserved.