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 aOnErrorResumerecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.Returns the value of theerrorConsumerrecord component.Returns the value of theerrorPredicaterecord component.final inthashCode()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 StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
OnErrorResume
Creates an instance of aOnErrorResumerecord class.- Parameters:
errorPredicate- the value for theerrorPredicaterecord componenterrorConsumer- the value for theerrorConsumerrecord 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:
toFluxErrorHandlerin 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 theerrorPredicaterecord component.- Returns:
- the value of the
errorPredicaterecord component
-
errorConsumer
Returns the value of theerrorConsumerrecord component.- Returns:
- the value of the
errorConsumerrecord component
-