Package io.servicetalk.concurrent.api
Class NonResubscribeablePublisherSubscriberFunction<T>
- java.lang.Object
-
- io.servicetalk.concurrent.api.NonResubscribeablePublisherSubscriberFunction<T>
-
- Type Parameters:
T
- Type of items received by theSubscriber
.
- All Implemented Interfaces:
java.util.function.Function<PublisherSource.Subscriber<? super T>,PublisherSource.Subscriber<? super T>>
public final class NonResubscribeablePublisherSubscriberFunction<T> extends java.lang.Object implements java.util.function.Function<PublisherSource.Subscriber<? super T>,PublisherSource.Subscriber<? super T>>
Allows only a singlePublisherSource.Subscriber
to subscribe to aTestPublisher
. Subsequent attempts to subscribe will throw an exception.
-
-
Constructor Summary
Constructors Constructor Description NonResubscribeablePublisherSubscriberFunction()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PublisherSource.Subscriber<? super T>
apply(PublisherSource.Subscriber<? super T> subscriber)
-
-
-
Method Detail
-
apply
public PublisherSource.Subscriber<? super T> apply(PublisherSource.Subscriber<? super T> subscriber)
- Specified by:
apply
in interfacejava.util.function.Function<PublisherSource.Subscriber<? super T>,PublisherSource.Subscriber<? super T>>
-
-