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 aBuilder
record 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 thecacheTransformer
record component.reactor.core.publisher.Flux
<U> Returns the value of thedataSource
record component.final boolean
Indicates whether some other object is "equal to" this one.Returns the value of theerrorHandler
record component.errorHandler
(ErrorHandler errorHandler) Returns the value of theeventSource
record component.final int
hashCode()
Returns a hash code value for this object.lifeCycleEventSource
(LifeCycleEventSource eventSource) reactor.core.scheduler.Scheduler
Returns the value of thescheduler
record component.scheduler
(reactor.core.scheduler.Scheduler scheduler) final String
toString()
Returns a string representation of this record class.transformer
(CacheFactory.CacheTransformer<?, R, ?, ?> cacheTransformer) Returns the value of thewindowingStrategy
record component.windowingStrategy
(WindowingStrategy<U> windowingStrategy) Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.github.pellse.assembler.caching.StreamTableFactoryBuilder.CacheTransformerBuilder
concurrent
Methods inherited from interface io.github.pellse.assembler.caching.StreamTableFactoryBuilder.ConfigBuilder
errorHandler, errorHandler
Methods 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 aBuilder
record class.- Parameters:
dataSource
- the value for thedataSource
record componentwindowingStrategy
- the value for thewindowingStrategy
record componenterrorHandler
- the value for theerrorHandler
record componentscheduler
- the value for thescheduler
record componenteventSource
- the value for theeventSource
record componentcacheTransformer
- the value for thecacheTransformer
record component
-
-
Method Details
-
windowingStrategy
public StreamTableFactoryBuilder.ConfigBuilder<R> windowingStrategy(WindowingStrategy<U> windowingStrategy) - Specified by:
windowingStrategy
in interfaceStreamTableFactoryBuilder.WindowingStrategyBuilder<R,
U extends CacheEvent<R>>
-
errorHandler
public StreamTableFactoryBuilder.LifeCycleEventSourceBuilder<R> errorHandler(ErrorHandler errorHandler) - Specified by:
errorHandler
in interfaceStreamTableFactoryBuilder.ConfigBuilder<R>
-
lifeCycleEventSource
public StreamTableFactoryBuilder.SchedulerBuilder<R> lifeCycleEventSource(LifeCycleEventSource eventSource) - Specified by:
lifeCycleEventSource
in interfaceStreamTableFactoryBuilder.LifeCycleEventSourceBuilder<R>
-
scheduler
public StreamTableFactoryBuilder.CacheTransformerBuilder<R> scheduler(reactor.core.scheduler.Scheduler scheduler) - Specified by:
scheduler
in interfaceStreamTableFactoryBuilder.SchedulerBuilder<R>
-
transformer
public StreamTableFactoryBuilder.StreamTableFactoryDelegateBuilder<R> transformer(CacheFactory.CacheTransformer<?, R, ?, ?> cacheTransformer) - Specified by:
transformer
in interfaceStreamTableFactoryBuilder.CacheTransformerBuilder<R>
-
build
public <ID,RRC, CacheFactory.CacheTransformer<ID,CTX extends CacheContext<ID, R, RRC, CTX>> R, build()RRC, CTX> - Specified by:
build
in 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 thedataSource
record component.- Returns:
- the value of the
dataSource
record component
-
windowingStrategy
Returns the value of thewindowingStrategy
record component.- Returns:
- the value of the
windowingStrategy
record component
-
errorHandler
Returns the value of theerrorHandler
record component.- Returns:
- the value of the
errorHandler
record component
-
scheduler
public reactor.core.scheduler.Scheduler scheduler()Returns the value of thescheduler
record component.- Returns:
- the value of the
scheduler
record component
-
eventSource
Returns the value of theeventSource
record component.- Returns:
- the value of the
eventSource
record component
-
cacheTransformer
Returns the value of thecacheTransformer
record component.- Returns:
- the value of the
cacheTransformer
record component
-