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