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>
public class PostgresTaskRepository extends JdbcTaskRepository.WithIntervalMultiplication
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class no.skatteetaten.fastsetting.formueinntekt.felles.task.jdbc.JdbcTaskRepository
JdbcTaskRepository.WithIntervalMultiplication
-
Nested classes/interfaces inherited from interface no.skatteetaten.fastsetting.formueinntekt.felles.task.api.TaskRepository
TaskRepository.Counting, TaskRepository.Direction, TaskRepository.Listing, TaskRepository.Snapshot
-
Nested classes/interfaces inherited from interface no.skatteetaten.fastsetting.formueinntekt.felles.task.api.TaskReviver
TaskReviver.Revived, TaskReviver.Revivification
-
Nested classes/interfaces inherited from interface no.skatteetaten.fastsetting.formueinntekt.felles.task.api.TaskSink
TaskSink.Insertion
-
-
Field Summary
-
Fields inherited from class no.skatteetaten.fastsetting.formueinntekt.felles.task.jdbc.JdbcTaskRepository
CHANGE_LOG, concurrent, owner
-
Fields inherited from interface no.skatteetaten.fastsetting.formueinntekt.felles.task.api.TaskRepository
INCEPTION
-
-
Constructor Summary
Constructors Constructor Description PostgresTaskRepository(boolean concurrent, String owner)PostgresTaskRepository(boolean concurrent, String owner, int bulkSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description (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)voidpurgeAll(Connection conn, String topic)List<Task>push(Connection conn, String topic, TaskSink.Insertion insertion, Collection<TaskCreation> creations)voidrefresh(Connection conn)-
Methods inherited from class no.skatteetaten.fastsetting.formueinntekt.felles.task.jdbc.JdbcTaskRepository.WithIntervalMultiplication
expire
-
Methods inherited from class no.skatteetaten.fastsetting.formueinntekt.felles.task.jdbc.JdbcTaskRepository
complete, count, doComplete, doPoll, doRecreate, doReset, doTranscribe, getCountingHint, getOwner, heartbeat, isConcurrent, page, page, poll, purge, purge, reassign, recreate, recreate, register, resolve
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface no.skatteetaten.fastsetting.formueinntekt.felles.task.api.TaskRepository
count, count, count, page, page, purge, purge, reassign, recreate, resolve, task
-
Methods inherited from interface no.skatteetaten.fastsetting.formueinntekt.felles.task.api.TaskReviver
recreate, recreate
-
Methods inherited from interface no.skatteetaten.fastsetting.formueinntekt.felles.task.api.TaskSink
push, push, push, push
-
Methods inherited from interface no.skatteetaten.fastsetting.formueinntekt.felles.task.api.TaskSource
complete, poll
-
-
-
-
Method Detail
-
initialize
public boolean initialize(Connection conn, String topic) throws SQLException
- Specified by:
initializein interfaceTaskRepository<Connection,SQLException>- Overrides:
initializein classJdbcTaskRepository- Throws:
SQLException
-
refresh
public void refresh(Connection conn) throws SQLException
- 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
-
doFilter
void doFilter(Connection conn, String topic, Collection<String> identifiers, long sequence) throws SQLException
- Overrides:
doFilterin classJdbcTaskRepository- Throws:
SQLException
-
purgeAll
public void purgeAll(Connection conn, String topic) throws SQLException
- 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
-
-