Record Class FlatMapConfig
java.lang.Object
java.lang.Record
io.reactivex.rxjava4.core.config.FlatMapConfig
Generic configuration block with option to delay errors, change prefetch
amounts and buffer sizes.
TODO once value classes are available, make this a record class.
- Since:
- 4.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionDefault config: no error delay,Flowable.bufferSize()sizes.FlatMapConfig(boolean delayErrors) Optionally delay error,Flowable.bufferSize()sizesFlatMapConfig(boolean delayErrors, int maxConcurrency) Optionally delays errors and sets the buffer size too.FlatMapConfig(boolean delayErrors, int maxConcurrency, int bufferSize) Fully customize the configuration.FlatMapConfig(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.
-
Constructor Details
-
FlatMapConfig
public FlatMapConfig()Default config: no error delay,Flowable.bufferSize()sizes. -
FlatMapConfig
public FlatMapConfig(boolean delayErrors) Optionally delay error,Flowable.bufferSize()sizes- Parameters:
delayErrors- should the error be delayed?
-
FlatMapConfig
public FlatMapConfig(int maxConcurrency) Optionally set the buffer size, no delay errors.- Parameters:
maxConcurrency- the maximum number of concurrent flows
-
FlatMapConfig
public FlatMapConfig(boolean delayErrors, int maxConcurrency) Optionally delays errors and sets the buffer size too.- Parameters:
maxConcurrency- the maximum number of concurrent flowsdelayError- should the errors be delayed?
-
FlatMapConfig
public FlatMapConfig(boolean delayErrors, int maxConcurrency, int bufferSize) Fully customize the configuration.- Parameters:
delayErrors- should the errors be delayedbufferSize- what would be the buffer sizeprefetch- what would be the prefetch amount
-
-
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
-