Class PostgresTaskRepository
java.lang.Object
no.skatteetaten.fastsetting.formueinntekt.felles.task.jdbc.JdbcTaskRepository
no.skatteetaten.fastsetting.formueinntekt.felles.task.jdbc.JdbcTaskRepository.WithIntervalMultiplication
no.skatteetaten.fastsetting.formueinntekt.felles.task.jdbc.PostgresTaskRepository
- All Implemented Interfaces:
TaskRepository<Connection,,SQLException> TaskReviver<Connection,,SQLException> TaskSink<Connection,,SQLException> TaskSource<Connection,SQLException>
-
Nested Class Summary
Nested classes/interfaces inherited from class no.skatteetaten.fastsetting.formueinntekt.felles.task.jdbc.JdbcTaskRepository
JdbcTaskRepository.WithIntervalMultiplicationNested classes/interfaces inherited from interface no.skatteetaten.fastsetting.formueinntekt.felles.task.api.TaskRepository
TaskRepository.Counting, TaskRepository.Direction, TaskRepository.Listing, TaskRepository.Snapshot, TaskRepository.SummaryNested classes/interfaces inherited from interface no.skatteetaten.fastsetting.formueinntekt.felles.task.api.TaskReviver
TaskReviver.Revived, TaskReviver.RevivificationNested classes/interfaces inherited from interface no.skatteetaten.fastsetting.formueinntekt.felles.task.api.TaskSink
TaskSink.InsertionNested classes/interfaces inherited from interface no.skatteetaten.fastsetting.formueinntekt.felles.task.api.TaskSource
TaskSource.Order -
Field Summary
Fields inherited from class no.skatteetaten.fastsetting.formueinntekt.felles.task.jdbc.JdbcTaskRepository
CHANGE_LOG, concurrent, ownerFields inherited from interface no.skatteetaten.fastsetting.formueinntekt.felles.task.api.TaskRepository
INCEPTION -
Constructor Summary
ConstructorsConstructorDescriptionPostgresTaskRepository(boolean concurrent, String owner) PostgresTaskRepository(boolean concurrent, String owner, int bulkSize) -
Method Summary
Modifier and TypeMethodDescription(package private) voiddoFilter(Connection conn, String topic, Collection<String> identifiers, long sequence) (package private) longdoPurge(Connection conn, String topic, long from, long to, TaskState lower, TaskState upper) booleaninitialize(Connection conn, String topic) poll(Connection conn, String topic, int size) voidpurgeAll(Connection conn, String topic) push(Connection conn, String topic, TaskSink.Insertion insertion, Collection<TaskCreation> creations) voidrefresh(Connection conn) booleanregister(Connection conn) Methods inherited from class no.skatteetaten.fastsetting.formueinntekt.felles.task.jdbc.JdbcTaskRepository.WithIntervalMultiplication
expireMethods inherited from class no.skatteetaten.fastsetting.formueinntekt.felles.task.jdbc.JdbcTaskRepository
complete, count, doComplete, doPoll, doRecreate, doReset, doTranscribe, getCountingHint, getOwner, getResultsHint, heartbeat, isConcurrent, owners, page, page, poll, purge, purge, purgeOwners, reassign, reassignAll, recreate, recreate, resolve, resultsMethods 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.task.api.TaskRepository
count, count, count, count, count, page, page, page, page, page, page, purge, purge, reassign, reassignAll, recreate, resolve, resolve, results, task, taskMethods inherited from interface no.skatteetaten.fastsetting.formueinntekt.felles.task.api.TaskReviver
recreate, recreateMethods inherited from interface no.skatteetaten.fastsetting.formueinntekt.felles.task.api.TaskSink
push, push, push, push, pushMethods inherited from interface no.skatteetaten.fastsetting.formueinntekt.felles.task.api.TaskSource
complete, poll, poll
-
Constructor Details
-
PostgresTaskRepository
-
PostgresTaskRepository
-
-
Method Details
-
register
- Specified by:
registerin interfaceTaskRepository<Connection,SQLException> - Overrides:
registerin classJdbcTaskRepository- Throws:
SQLException
-
initialize
- Specified by:
initializein interfaceTaskRepository<Connection,SQLException> - Overrides:
initializein classJdbcTaskRepository- Throws:
SQLException
-
refresh
- Throws:
SQLException
-
push
public List<Task> push(Connection conn, String topic, TaskSink.Insertion insertion, Collection<TaskCreation> creations) throws SQLException - Specified by:
pushin interfaceTaskSink<Connection,SQLException> - Overrides:
pushin classJdbcTaskRepository- Throws:
SQLException
-
poll
- Throws:
SQLException
-
doFilter
void doFilter(Connection conn, String topic, Collection<String> identifiers, long sequence) throws SQLException - Overrides:
doFilterin classJdbcTaskRepository- Throws:
SQLException
-
purgeAll
- Specified by:
purgeAllin interfaceTaskRepository<Connection,SQLException> - Overrides:
purgeAllin classJdbcTaskRepository- Throws:
SQLException
-
doPurge
long doPurge(Connection conn, String topic, long from, long to, TaskState lower, TaskState upper) throws SQLException - Overrides:
doPurgein classJdbcTaskRepository- Throws:
SQLException
-