Class OracleTaskRepository
- java.lang.Object
-
- no.skatteetaten.fastsetting.formueinntekt.felles.task.jdbc.JdbcTaskRepository
-
- no.skatteetaten.fastsetting.formueinntekt.felles.task.jdbc.OracleTaskRepository
-
- All Implemented Interfaces:
TaskRepository<Connection,SQLException>,TaskReviver<Connection,SQLException>,TaskSink<Connection,SQLException>,TaskSource<Connection,SQLException>
public class OracleTaskRepository extends JdbcTaskRepository
-
-
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 OracleTaskRepository(boolean concurrent, String owner)OracleTaskRepository(boolean concurrent, String owner, int lockSize, int bulkSize, boolean hint)
-
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) Set<Task>doPoll(Connection conn, String topic, TaskState state, long from, long to, int size)(package private) longdoPurge(Connection conn, String topic, long from, long to, TaskState lower, TaskState upper)voidexpire(Connection conn, long timeout, TimeUnit unit)(package private) StringgetCountingHint(boolean identified)voidheartbeat(Connection conn)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
complete, count, doComplete, doRecreate, doReset, doTranscribe, getOwner, 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
-
heartbeat
public void heartbeat(Connection conn) throws SQLException
- Specified by:
heartbeatin interfaceTaskRepository<Connection,SQLException>- Overrides:
heartbeatin classJdbcTaskRepository- Throws:
SQLException
-
expire
public void expire(Connection conn, long timeout, TimeUnit unit) throws SQLException
- Specified by:
expirein interfaceTaskRepository<Connection,SQLException>- Overrides:
expirein classJdbcTaskRepository- Throws:
SQLException
-
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
-
doPoll
Set<Task> doPoll(Connection conn, String topic, TaskState state, long from, long to, int size) throws SQLException
- Overrides:
doPollin 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
-
getCountingHint
String getCountingHint(boolean identified)
- Overrides:
getCountingHintin classJdbcTaskRepository
-
-