Class PostgresProcessorNotifier
java.lang.Object
no.skatteetaten.fastsetting.formueinntekt.felles.task.processor.jdbc.PostgresProcessorNotifier
- All Implemented Interfaces:
ProcessorNotifier
-
Constructor Summary
ConstructorsConstructorDescriptionPostgresProcessorNotifier(UnpooledConnectionSource<org.postgresql.jdbc.PgConnection> connectionSource, Runnable onDisconnected, Executor executor, Collection<? extends TaskProcessor> processors, BiConsumer<TaskProcessor, TaskChangeEvent> callback) -
Method Summary
-
Constructor Details
-
PostgresProcessorNotifier
public PostgresProcessorNotifier(UnpooledConnectionSource<org.postgresql.jdbc.PgConnection> connectionSource, Runnable onDisconnected, Executor executor, Collection<? extends TaskProcessor> processors, BiConsumer<TaskProcessor, TaskChangeEvent> callback)
-
-
Method Details
-
isActive
public boolean isActive()- Specified by:
isActivein interfaceProcessorNotifier
-
start
public boolean start()- Specified by:
startin interfaceProcessorNotifier
-
stop
public boolean stop()- Specified by:
stopin interfaceProcessorNotifier
-