Record Class AutoCacheFactory.OnErrorResume
java.lang.Object
java.lang.Record
io.github.pellse.assembler.caching.AutoCacheFactory.OnErrorResume
- All Implemented Interfaces:
AutoCacheFactory.ErrorHandler
- Enclosing interface:
AutoCacheFactory
-
Constructor Summary
ConstructorsConstructorDescriptionOnErrorResume
(Predicate<Throwable> errorPredicate, Consumer<Throwable> errorConsumer) Creates an instance of aOnErrorResume
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.Returns the value of theerrorConsumer
record component.Returns the value of theerrorPredicate
record component.final int
hashCode()
Returns a hash code value for this object.onErrorResume
(Consumer<Throwable> errorConsumer) onErrorResume
(Predicate<Throwable> errorPredicate, Consumer<Throwable> errorConsumer) <T> Function
<reactor.core.publisher.Flux<T>, reactor.core.publisher.Flux<T>> final String
toString()
Returns a string representation of this record class.
-
Constructor Details
-
OnErrorResume
Creates an instance of aOnErrorResume
record class.- Parameters:
errorPredicate
- the value for theerrorPredicate
record componenterrorConsumer
- the value for theerrorConsumer
record component
-
-
Method Details
-
onErrorResume
-
onErrorResume
-
onErrorResume
public static AutoCacheFactory.OnErrorResume onErrorResume(Predicate<Throwable> errorPredicate, Consumer<Throwable> errorConsumer) -
toFluxErrorHandler
public <T> Function<reactor.core.publisher.Flux<T>,reactor.core.publisher.Flux<T>> toFluxErrorHandler()- Specified by:
toFluxErrorHandler
in interfaceAutoCacheFactory.ErrorHandler
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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 withObjects::equals(Object,Object)
. -
errorPredicate
Returns the value of theerrorPredicate
record component.- Returns:
- the value of the
errorPredicate
record component
-
errorConsumer
Returns the value of theerrorConsumer
record component.- Returns:
- the value of the
errorConsumer
record component
-