
io.lettuce.core.event.EventBus Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of lettuce-core Show documentation
Show all versions of lettuce-core Show documentation
Advanced and thread-safe Java Redis client for synchronous, asynchronous, and
reactive usage. Supports Cluster, Sentinel, Pipelining, Auto-Reconnect, Codecs
and much more.
The newest version!
package io.lettuce.core.event;
import reactor.core.publisher.Flux;
/**
* Interface for an EventBus. Events can be published over the bus that are delivered to the subscribers.
*
* @author Mark Paluch
* @since 3.4
*/
public interface EventBus {
/**
* Subscribe to the event bus and {@link Event}s. The {@link Flux} drops events on backpressure to avoid contention.
*
* @return the observable to obtain events.
*/
Flux get();
/**
* Publish a {@link Event} to the bus.
*
* @param event the event to publish
*/
void publish(Event event);
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy