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