org.zodiac.reactor.event.AsyncEvent Maven / Gradle / Ivy
The newest version!
package org.zodiac.reactor.event;
import org.reactivestreams.Publisher;
import reactor.core.publisher.Mono;
import java.util.function.Function;
/**
* Asynchronous event, which are used when using reactive programming for event listening.
*
*/
public interface AsyncEvent {
Mono getAsync();
/**
* Register an asynchronous task.
*
* @param publisher Asynchronous task.
*/
void async(Publisher> publisher);
/**
* Register a task with a high priority.
*
* @param publisher The task.
*/
void first(Publisher> publisher);
void transformFirst(Function,Publisher>> mapper);
void transform(Function,Publisher>> mapper);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy