Record Class ObservableObserveOnConfig
java.lang.Object
java.lang.Record
io.reactivex.rxjava4.core.config.ObservableObserveOnConfig
- Record Components:
delayError- should the error propagation be delayed?bufferSize- the expected number of items to cache from the upstream
Configuration record for Observable.observeOn() operators.
- Since:
- 4.0.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ObservableObserveOnConfigThe default configuration with no error delays and bufferSize of Observable.bufferSize().static final ObservableObserveOnConfigThe default configuration with error delays and bufferSize of Observable.bufferSize(). -
Constructor Summary
ConstructorsConstructorDescriptionObservableObserveOnConfig(boolean delayError) Constructs a configuration record.ObservableObserveOnConfig(boolean delayError, int bufferSize) Constructs a configuration record.ObservableObserveOnConfig(int bufferSize) Constructs a configuration record. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thebufferSizerecord component.booleanReturns the value of thedelayErrorrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
DEFAULT
The default configuration with no error delays and bufferSize of Observable.bufferSize(). -
DELAY_ERROR
The default configuration with error delays and bufferSize of Observable.bufferSize().
-
-
Constructor Details
-
ObservableObserveOnConfig
public ObservableObserveOnConfig(boolean delayError) Constructs a configuration record.- Parameters:
delayError- should the error propagation be delayed?
-
ObservableObserveOnConfig
public ObservableObserveOnConfig(int bufferSize) Constructs a configuration record.- Parameters:
bufferSize- the expected number of items to cache from the upstream
-
ObservableObserveOnConfig
public ObservableObserveOnConfig(boolean delayError, int bufferSize) Constructs a configuration record.- Parameters:
delayError- should the error propagation be delayed?bufferSize- the expected number of items to cache from the upstream
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
delayError
public boolean delayError()Returns the value of thedelayErrorrecord component.- Returns:
- the value of the
delayErrorrecord component
-
bufferSize
public int bufferSize()Returns the value of thebufferSizerecord component.- Returns:
- the value of the
bufferSizerecord component
-