Record Class StreamTableFactoryBuilder.Builder<R,U extends CacheEvent<R>>
java.lang.Object
java.lang.Record
io.github.pellse.assembler.caching.StreamTableFactoryBuilder.Builder<R,U>
- All Implemented Interfaces:
StreamTableFactoryBuilder.CacheTransformerBuilder<R>,StreamTableFactoryBuilder.ConfigBuilder<R>,StreamTableFactoryBuilder.LifeCycleEventSourceBuilder<R>,StreamTableFactoryBuilder.SchedulerBuilder<R>,StreamTableFactoryBuilder.StreamTableFactoryDelegateBuilder<R>,StreamTableFactoryBuilder.WindowingStrategyBuilder<R,U>
- Enclosing interface:
StreamTableFactoryBuilder
public static record StreamTableFactoryBuilder.Builder<R,U extends CacheEvent<R>> (reactor.core.publisher.Flux<U extends CacheEvent<R>> dataSource, WindowingStrategy<U extends CacheEvent<R>> windowingStrategy, ErrorHandler errorHandler, reactor.core.scheduler.Scheduler scheduler, LifeCycleEventSource eventSource, CacheFactory.CacheTransformer<?,R,?,?> cacheTransformer)
extends Record
implements StreamTableFactoryBuilder.WindowingStrategyBuilder<R,U>
-
Constructor Summary
ConstructorsConstructorDescriptionBuilder(reactor.core.publisher.Flux<U> dataSource, WindowingStrategy<U> windowingStrategy, ErrorHandler errorHandler, reactor.core.scheduler.Scheduler scheduler, LifeCycleEventSource eventSource, CacheFactory.CacheTransformer<?, R, ?, ?> cacheTransformer) Creates an instance of aBuilderrecord class. -
Method Summary
Modifier and TypeMethodDescription<ID,RRC, CTX extends CacheContext<ID, R, RRC, CTX>>
CacheFactory.CacheTransformer<ID, R, RRC, CTX> build()CacheFactory.CacheTransformer<?, R, ?, ?> Returns the value of thecacheTransformerrecord component.reactor.core.publisher.Flux<U> Returns the value of thedataSourcerecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theerrorHandlerrecord component.errorHandler(ErrorHandler errorHandler) Returns the value of theeventSourcerecord component.final inthashCode()Returns a hash code value for this object.lifeCycleEventSource(LifeCycleEventSource eventSource) reactor.core.scheduler.SchedulerReturns the value of theschedulerrecord component.scheduler(reactor.core.scheduler.Scheduler scheduler) final StringtoString()Returns a string representation of this record class.transformer(CacheFactory.CacheTransformer<?, R, ?, ?> cacheTransformer) Returns the value of thewindowingStrategyrecord component.windowingStrategy(WindowingStrategy<U> windowingStrategy) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface io.github.pellse.assembler.caching.StreamTableFactoryBuilder.CacheTransformerBuilder
concurrentMethods inherited from interface io.github.pellse.assembler.caching.StreamTableFactoryBuilder.ConfigBuilder
errorHandler, errorHandlerMethods inherited from interface io.github.pellse.assembler.caching.StreamTableFactoryBuilder.WindowingStrategyBuilder
maxWindowSize, maxWindowSizeAndTime, maxWindowTime
-
Constructor Details
-
Builder
public Builder(reactor.core.publisher.Flux<U> dataSource, WindowingStrategy<U> windowingStrategy, ErrorHandler errorHandler, reactor.core.scheduler.Scheduler scheduler, LifeCycleEventSource eventSource, CacheFactory.CacheTransformer<?, R, ?, ?> cacheTransformer) Creates an instance of aBuilderrecord class.- Parameters:
dataSource- the value for thedataSourcerecord componentwindowingStrategy- the value for thewindowingStrategyrecord componenterrorHandler- the value for theerrorHandlerrecord componentscheduler- the value for theschedulerrecord componenteventSource- the value for theeventSourcerecord componentcacheTransformer- the value for thecacheTransformerrecord component
-
-
Method Details
-
windowingStrategy
public StreamTableFactoryBuilder.ConfigBuilder<R> windowingStrategy(WindowingStrategy<U> windowingStrategy) - Specified by:
windowingStrategyin interfaceStreamTableFactoryBuilder.WindowingStrategyBuilder<R,U extends CacheEvent<R>>
-
errorHandler
public StreamTableFactoryBuilder.LifeCycleEventSourceBuilder<R> errorHandler(ErrorHandler errorHandler) - Specified by:
errorHandlerin interfaceStreamTableFactoryBuilder.ConfigBuilder<R>
-
lifeCycleEventSource
public StreamTableFactoryBuilder.SchedulerBuilder<R> lifeCycleEventSource(LifeCycleEventSource eventSource) - Specified by:
lifeCycleEventSourcein interfaceStreamTableFactoryBuilder.LifeCycleEventSourceBuilder<R>
-
scheduler
public StreamTableFactoryBuilder.CacheTransformerBuilder<R> scheduler(reactor.core.scheduler.Scheduler scheduler) - Specified by:
schedulerin interfaceStreamTableFactoryBuilder.SchedulerBuilder<R>
-
transformer
public StreamTableFactoryBuilder.StreamTableFactoryDelegateBuilder<R> transformer(CacheFactory.CacheTransformer<?, R, ?, ?> cacheTransformer) - Specified by:
transformerin interfaceStreamTableFactoryBuilder.CacheTransformerBuilder<R>
-
build
public <ID,RRC, CacheFactory.CacheTransformer<ID,CTX extends CacheContext<ID, R, RRC, CTX>> R, build()RRC, CTX> - Specified by:
buildin interfaceStreamTableFactoryBuilder.StreamTableFactoryDelegateBuilder<R>
-
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). -
dataSource
Returns the value of thedataSourcerecord component.- Returns:
- the value of the
dataSourcerecord component
-
windowingStrategy
Returns the value of thewindowingStrategyrecord component.- Returns:
- the value of the
windowingStrategyrecord component
-
errorHandler
Returns the value of theerrorHandlerrecord component.- Returns:
- the value of the
errorHandlerrecord component
-
scheduler
public reactor.core.scheduler.Scheduler scheduler()Returns the value of theschedulerrecord component.- Returns:
- the value of the
schedulerrecord component
-
eventSource
Returns the value of theeventSourcerecord component.- Returns:
- the value of the
eventSourcerecord component
-
cacheTransformer
Returns the value of thecacheTransformerrecord component.- Returns:
- the value of the
cacheTransformerrecord component
-