Record Class ObservableConcatEagerConfig
java.lang.Object
java.lang.Record
io.reactivex.rxjava4.core.config.ObservableConcatEagerConfig
- Record Components:
errorMode- how to handle when errors appear from the inner or outer sourcesmaxConcurrency- the maximum number of concurrent flows?bufferSize- what would be the buffer size?
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ObservableConcatEagerConfigThe default configuration with no error delays, maxConcurrency and bufferSize ofObservable.bufferSize().static final ObservableConcatEagerConfigThe default configuration with error delays, maxConcurrency and bufferSize ofObservable.bufferSize().static final ObservableConcatEagerConfigThe default configuration with error delays, maxConcurrency and bufferSize ofObservable.bufferSize().static final ObservableConcatEagerConfigThe default configuration with no error delays, maxConcurrency of MAX_INT and bufferSize ofObservable.bufferSize(). -
Constructor Summary
ConstructorsConstructorDescriptionObservableConcatEagerConfig(int maxConcurrency) Optionally set the buffer size, no delay errors.ObservableConcatEagerConfig(@NonNull ErrorMode errorMode, int maxConcurrency) Optionally delays errors and sets the buffer size too.ObservableConcatEagerConfig(@NonNull ErrorMode errorMode, int maxConcurrency, int bufferSize) Fully customize the configuration.ObservableConcatEagerConfig(ErrorMode errorMode) Optionally delay error,Observable.bufferSize()sizes -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of thebufferSizerecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theerrorModerecord component.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 configuration with no error delays, maxConcurrency and bufferSize ofObservable.bufferSize(). -
DELAY_ERROR
The default configuration with error delays, maxConcurrency and bufferSize ofObservable.bufferSize(). -
DELAY_ERROR_BOUNDARY
The default configuration with error delays, maxConcurrency and bufferSize ofObservable.bufferSize(). -
MAX_DEFAULT
The default configuration with no error delays, maxConcurrency of MAX_INT and bufferSize ofObservable.bufferSize().
-
-
Constructor Details
-
ObservableConcatEagerConfig
Optionally delay error,Observable.bufferSize()sizes- Parameters:
errorMode- how to handle when errors appear from the inner or outer sources
-
ObservableConcatEagerConfig
public ObservableConcatEagerConfig(int maxConcurrency) Optionally set the buffer size, no delay errors.- Parameters:
maxConcurrency- the maximum number of concurrent flows
-
ObservableConcatEagerConfig
-
ObservableConcatEagerConfig
public ObservableConcatEagerConfig(@NonNull @NonNull ErrorMode errorMode, int maxConcurrency, int bufferSize) Fully customize the configuration.- Parameters:
errorMode- how to handle when errors appear from the inner or outer sourcesmaxConcurrency- the maximum number of concurrent flows?bufferSize- what would be the buffer size
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
errorMode
-
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
-