public class AllFailedEventsJdbcImpl extends Object implements AllFailedEvents
| Modifier and Type | Field and Description |
|---|---|
static int |
ERROR_MSG_MAX_LEN |
static String |
FAILED_EVENT_RETRY_LOG_TABLE |
static String |
FAILED_EVENTS_TABLE |
static String |
QUERY_FIELD_LIST |
| Constructor and Description |
|---|
AllFailedEventsJdbcImpl(JdbcConnectionProvider connectionProvider) |
| Modifier and Type | Method and Description |
|---|---|
void |
addOrUpdate(FailedEvent failedEvent) |
FailedEvent |
get(String feedUri,
String eventId) |
FailedEvent |
getByEventId(String eventId) |
List<FailedEventRetryLog> |
getFailedEventRetryLogs(String eventId) |
List<FailedEvent> |
getFailedEvents(String feedUri) |
int |
getNumberOfFailedEvents(String feedUri) |
List<FailedEvent> |
getOldestNFailedEvents(String feedUri,
int numberOfFailedEvents,
int numberOfRetries) |
void |
insert(FailedEventRetryLog failedEventRetryLog) |
void |
remove(FailedEvent failedEvent) |
public static final String FAILED_EVENTS_TABLE
public static final String FAILED_EVENT_RETRY_LOG_TABLE
public static final int ERROR_MSG_MAX_LEN
public static final String QUERY_FIELD_LIST
public AllFailedEventsJdbcImpl(JdbcConnectionProvider connectionProvider)
public FailedEvent get(String feedUri, String eventId)
get in interface AllFailedEventspublic FailedEvent getByEventId(String eventId)
getByEventId in interface AllFailedEventspublic List<FailedEvent> getFailedEvents(String feedUri)
getFailedEvents in interface AllFailedEventspublic void addOrUpdate(FailedEvent failedEvent)
addOrUpdate in interface AllFailedEventspublic void insert(FailedEventRetryLog failedEventRetryLog)
insert in interface AllFailedEventspublic List<FailedEvent> getOldestNFailedEvents(String feedUri, int numberOfFailedEvents, int numberOfRetries)
getOldestNFailedEvents in interface AllFailedEventspublic int getNumberOfFailedEvents(String feedUri)
getNumberOfFailedEvents in interface AllFailedEventspublic void remove(FailedEvent failedEvent)
remove in interface AllFailedEventspublic List<FailedEventRetryLog> getFailedEventRetryLogs(String eventId)
getFailedEventRetryLogs in interface AllFailedEventsCopyright © 2016. All Rights Reserved.