public class DumpyDB extends Object implements org.irenical.lifecycle.LifeCycle
| Constructor and Description |
|---|
DumpyDB() |
| Modifier and Type | Method and Description |
|---|---|
PaginatedResponse<String> |
get(String jobCode,
String streamCode,
String cursor) |
String |
getCursor(String jobCode,
String streamCode) |
Integer |
getStreamId(String jobCode,
String streamCode) |
<ERROR extends Exception> |
isRunning() |
Integer |
newStream(String jobCode,
String streamCode) |
boolean |
setCursor(String jobCode,
String streamCode,
String cursor) |
<ERROR extends Exception> |
start() |
<ERROR extends Exception> |
stop() |
Boolean |
upsertEntities(String jobCode,
String streamCode,
Object[] entityIds,
ZonedDateTime lastErrorStamp,
ZonedDateTime lastUpdatedStamp)
over complicated query but its faster than 1 for each entity
|
public <ERROR extends Exception> void start() throws ERROR extends Exception
start in interface org.irenical.lifecycle.LifeCycleERROR extends Exceptionpublic <ERROR extends Exception> void stop() throws ERROR extends Exception
stop in interface org.irenical.lifecycle.LifeCycleERROR extends Exceptionpublic <ERROR extends Exception> boolean isRunning() throws ERROR extends Exception
isRunning in interface org.irenical.lifecycle.LifeCycleERROR extends Exceptionpublic String getCursor(String jobCode, String streamCode) throws SQLException
SQLExceptionpublic boolean setCursor(String jobCode, String streamCode, String cursor) throws SQLException
SQLExceptionpublic Integer getStreamId(String jobCode, String streamCode) throws SQLException
SQLExceptionpublic Integer newStream(String jobCode, String streamCode) throws SQLException
SQLExceptionpublic Boolean upsertEntities(String jobCode, String streamCode, Object[] entityIds, ZonedDateTime lastErrorStamp, ZonedDateTime lastUpdatedStamp) throws SQLException
SQLExceptionpublic PaginatedResponse<String> get(String jobCode, String streamCode, String cursor) throws SQLException
SQLExceptionCopyright © 2018 Irenical. All rights reserved.