Java Code Examples for org.eclipse.microprofile.reactive.streams.operators.ReactiveStreams#fromSubscriber()

The following examples show how to use org.eclipse.microprofile.reactive.streams.operators.ReactiveStreams#fromSubscriber() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: DefaultReactiveStreamsFactory.java    From microprofile-reactive-streams-operators with Apache License 2.0 4 votes vote down vote up
@Override
public <T> SubscriberBuilder<T, Void> fromSubscriber(Subscriber<? extends T> subscriber) {
    return ReactiveStreams.fromSubscriber(subscriber);
}
 
Example 2
Source File: MockedReceiver.java    From smallrye-reactive-messaging with Apache License 2.0 4 votes vote down vote up
public SubscriberBuilder<Message<T>, Void> createWrappedSubscriber() {
    return ReactiveStreams.fromSubscriber(new MessageProcessor());
}