Record Class SingleMergeConfig
java.lang.Object
java.lang.Record
io.reactivex.rxjava4.core.config.SingleMergeConfig
- Record Components:
delayErrors- should the error propagation be delayed?maxConcurrency- the number of source sequences run concurrently
Configuration record for Single.merge() operators.
- Since:
- 4.0.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SingleMergeConfigThe default config with no error delay and Integer#MAX_VALUE as the maximum concurrency setting.static final SingleMergeConfigThe default config with error delay and Integer#MAX_VALUE as the maximum concurrency setting. -
Constructor Summary
ConstructorsConstructorDescriptionSingleMergeConfig(boolean delayErrors) Constructs a configuration record.SingleMergeConfig(boolean delayErrors, int maxConcurrency) Constructs a configuration record.SingleMergeConfig(int maxConcurrency) Constructs a configuration record. -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns 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 config with no error delay and Integer#MAX_VALUE as the maximum concurrency setting. -
DELAY_ERRORS
The default config with error delay and Integer#MAX_VALUE as the maximum concurrency setting.
-
-
Constructor Details
-
SingleMergeConfig
public SingleMergeConfig(boolean delayErrors) Constructs a configuration record.- Parameters:
delayErrors- should the error propagation be delayed?
-
SingleMergeConfig
public SingleMergeConfig(int maxConcurrency) Constructs a configuration record.- Parameters:
maxConcurrency- the number of source sequences run concurrently
-
SingleMergeConfig
public SingleMergeConfig(boolean delayErrors, int maxConcurrency) Constructs a configuration record.- Parameters:
delayErrors- should the error propagation be delayed?maxConcurrency- the number of source sequences run concurrently
-
-
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
-