Record Class GenericConfig
java.lang.Object
java.lang.Record
io.reactivex.rxjava4.core.config.GenericConfig
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.GenericConfig(boolean delayError) Optionally delay error,Flowable.bufferSize()sizes.GenericConfig(boolean delayError, int bufferSize) Optionally delays errors and sets the buffer size too.GenericConfig(boolean delayError, int bufferSize, int prefetch) Fully customize the configuration.GenericConfig(int bufferSize) Optionally set the buffer size, no delay errors. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thebufferSizerecord component.booleanReturns the value of thedelayErrorrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intprefetch()Returns the value of theprefetchrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GenericConfig
public GenericConfig()Default config: no error delay,Flowable.bufferSize()sizes. -
GenericConfig
public GenericConfig(boolean delayError) Optionally delay error,Flowable.bufferSize()sizes.- Parameters:
delayError- should the error be delayed?
-
GenericConfig
public GenericConfig(int bufferSize) Optionally set the buffer size, no delay errors.- Parameters:
bufferSize- the prefetch and the buffer size
-
GenericConfig
public GenericConfig(boolean delayError, int bufferSize) Optionally delays errors and sets the buffer size too.- Parameters:
delayError- should the errors be delayed?bufferSize- the prefetch and the buffer size
-
GenericConfig
public GenericConfig(boolean delayError, int bufferSize, int prefetch) Fully customize the configuration.- Parameters:
delayError- 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. -
delayError
public boolean delayError()Returns the value of thedelayErrorrecord component.- Returns:
- the value of the
delayErrorrecord component
-
bufferSize
public int bufferSize()Returns the value of thebufferSizerecord component.- Returns:
- the value of the
bufferSizerecord component
-
prefetch
public int prefetch()Returns the value of theprefetchrecord component.- Returns:
- the value of the
prefetchrecord component
-