Class StreamProcessor<POINTER,TRANSACTION>
java.lang.Object
no.skatteetaten.fastsetting.formueinntekt.felles.feed.api.FeedProcessor.Simple<POINTER>
no.skatteetaten.fastsetting.formueinntekt.felles.feed.stream.StreamProcessor<POINTER,TRANSACTION>
- All Implemented Interfaces:
FeedProcessor<POINTER>
-
Nested Class Summary
Nested classes/interfaces inherited from interface no.skatteetaten.fastsetting.formueinntekt.felles.feed.api.FeedProcessor
FeedProcessor.Activation, FeedProcessor.Simple<POINTER extends Object> -
Field Summary
Fields inherited from class no.skatteetaten.fastsetting.formueinntekt.felles.feed.api.FeedProcessor.Simple
lastError, pointer -
Constructor Summary
ConstructorsConstructorDescriptionStreamProcessor(POINTER pointer, Executor executor, Supplier<Reader> sourceProvider, int batch, boolean abortOnError, long pause, FeedRepository<Long, POINTER, TRANSACTION> repository, FeedConsumer<? super Long, ? super StreamEntry, TRANSACTION> consumer) -
Method Summary
Modifier and TypeMethodDescriptionprotected voiddoStart(BooleanSupplier isAlive) protected voidprotected voidonReset()Methods inherited from class no.skatteetaten.fastsetting.formueinntekt.felles.feed.api.FeedProcessor.Simple
complete, getCurrentState, reset, start, stopMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface no.skatteetaten.fastsetting.formueinntekt.felles.feed.api.FeedProcessor
findActivation, initialize, shutdown
-
Constructor Details
-
StreamProcessor
public StreamProcessor(POINTER pointer, Executor executor, Supplier<Reader> sourceProvider, int batch, boolean abortOnError, long pause, FeedRepository<Long, POINTER, TRANSACTION> repository, FeedConsumer<? super Long, ? super StreamEntry, TRANSACTION> consumer)
-
-
Method Details
-
doStart
- Specified by:
doStartin classFeedProcessor.Simple<POINTER>
-
onReset
protected void onReset()- Specified by:
onResetin classFeedProcessor.Simple<POINTER>
-
onComplete
protected void onComplete()- Specified by:
onCompletein classFeedProcessor.Simple<POINTER>
-