Record Class ObservableMergeConfig
java.lang.Object
java.lang.Record
io.reactivex.rxjava4.core.config.ObservableMergeConfig
- Record Components:
delayErrors- should the error be delayed?maxConcurrency- the maximum number of concurrent flows?bufferSize- what would be the buffer size?
public record ObservableMergeConfig(boolean delayErrors, int maxConcurrency, int bufferSize)
extends Record
Configuration record for Observable.merge() operators.
- Since:
- 4.0.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ObservableMergeConfigThe default configuration with no error delays and bufferSize ofObservable.bufferSize().static final ObservableMergeConfigThe default configuration with error delays and bufferSize ofObservable.bufferSize(). -
Constructor Summary
ConstructorsConstructorDescriptionObservableMergeConfig(boolean delayErrors) Optionally delay error,Flowable.bufferSize()sizesObservableMergeConfig(boolean delayErrors, int maxConcurrency) Optionally delays errors and sets the buffer size too.ObservableMergeConfig(boolean delayErrors, int maxConcurrency, int bufferSize) Fully customize the configuration.ObservableMergeConfig(int maxConcurrency) Optionally set the buffer size, no delay errors. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thebufferSizerecord component.booleanReturns the value of thedelayErrorsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of themaxConcurrencyrecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
DEFAULT
The default configuration with no error delays and bufferSize ofObservable.bufferSize(). -
DELAY_ERROR
The default configuration with error delays and bufferSize ofObservable.bufferSize().
-
-
Constructor Details
-
ObservableMergeConfig
public ObservableMergeConfig(boolean delayErrors) Optionally delay error,Flowable.bufferSize()sizes- Parameters:
delayErrors- should the error be delayed?
-
ObservableMergeConfig
public ObservableMergeConfig(int maxConcurrency) Optionally set the buffer size, no delay errors.- Parameters:
maxConcurrency- the maximum number of concurrent flows
-
ObservableMergeConfig
public ObservableMergeConfig(boolean delayErrors, int maxConcurrency) Optionally delays errors and sets the buffer size too.- Parameters:
delayErrors- should the errors be delayed?maxConcurrency- the maximum number of concurrent flows
-
ObservableMergeConfig
public ObservableMergeConfig(boolean delayErrors, int maxConcurrency, int bufferSize) Fully customize the configuration.- Parameters:
delayErrors- should the errors be delayedmaxConcurrency- the maximum number of concurrent flows?bufferSize- what would be the buffer size
-
-
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. -
delayErrors
public boolean delayErrors()Returns the value of thedelayErrorsrecord component.- Returns:
- the value of the
delayErrorsrecord component
-
maxConcurrency
public int maxConcurrency()Returns the value of themaxConcurrencyrecord component.- Returns:
- the value of the
maxConcurrencyrecord component
-
bufferSize
public int bufferSize()Returns the value of thebufferSizerecord component.- Returns:
- the value of the
bufferSizerecord component
-