Package io.reactivex.rxjava3.subscribers
Enum Class TestSubscriber.EmptySubscriber
java.lang.Object
java.lang.Enum<TestSubscriber.EmptySubscriber>
io.reactivex.rxjava3.subscribers.TestSubscriber.EmptySubscriber
- All Implemented Interfaces:
FlowableSubscriber<Object>
,Serializable
,Comparable<TestSubscriber.EmptySubscriber>
,Constable
,org.reactivestreams.Subscriber<Object>
- Enclosing class:
TestSubscriber<T>
static enum TestSubscriber.EmptySubscriber
extends Enum<TestSubscriber.EmptySubscriber>
implements FlowableSubscriber<Object>
A subscriber that ignores all events and does not report errors.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
void
void
void
onSubscribe
(org.reactivestreams.Subscription s) Implementors of this method should make sure everything that needs to be visible inSubscriber.onNext(Object)
is established before callingSubscription.request(long)
.Returns the enum constant of this class with the specified name.static TestSubscriber.EmptySubscriber[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
-
-
Constructor Details
-
EmptySubscriber
private EmptySubscriber()
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
onSubscribe
public void onSubscribe(org.reactivestreams.Subscription s) Description copied from interface:FlowableSubscriber
Implementors of this method should make sure everything that needs to be visible inSubscriber.onNext(Object)
is established before callingSubscription.request(long)
. In practice this means no initialization should happen after therequest()
call and additional behavior is thread safe in respect toonNext
.- Specified by:
onSubscribe
in interfaceFlowableSubscriber<Object>
- Specified by:
onSubscribe
in interfaceorg.reactivestreams.Subscriber<Object>
-
onNext
- Specified by:
onNext
in interfaceorg.reactivestreams.Subscriber<Object>
-
onError
- Specified by:
onError
in interfaceorg.reactivestreams.Subscriber<Object>
-
onComplete
public void onComplete()- Specified by:
onComplete
in interfaceorg.reactivestreams.Subscriber<Object>
-