Class PostgresNgProcessorNotifier
java.lang.Object
no.skatteetaten.fastsetting.formueinntekt.felles.task.processor.jdbc.PostgresNgProcessorNotifier
- All Implemented Interfaces:
com.impossibl.postgres.api.jdbc.PGNotificationListener,ProcessorNotifier
public class PostgresNgProcessorNotifier
extends Object
implements ProcessorNotifier, com.impossibl.postgres.api.jdbc.PGNotificationListener
-
Constructor Summary
ConstructorsConstructorDescriptionPostgresNgProcessorNotifier(UnpooledConnectionSource<com.impossibl.postgres.api.jdbc.PGConnection> connectionSource, Runnable onDisconnect, Collection<? extends TaskProcessor> processors, BiConsumer<TaskProcessor, TaskChangeEvent> callback) -
Method Summary
-
Constructor Details
-
PostgresNgProcessorNotifier
public PostgresNgProcessorNotifier(UnpooledConnectionSource<com.impossibl.postgres.api.jdbc.PGConnection> connectionSource, Runnable onDisconnect, 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
-
notification
- Specified by:
notificationin interfacecom.impossibl.postgres.api.jdbc.PGNotificationListener
-
closed
public void closed()- Specified by:
closedin interfacecom.impossibl.postgres.api.jdbc.PGNotificationListener
-