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