Package org.cyclos.impl.users
Class TransactionFeedbackReminderPollingTask
- java.lang.Object
-
- org.cyclos.impl.AbstractServerComponent
-
- org.cyclos.impl.AbstractGlobalServerComponent
-
- org.cyclos.impl.utils.tasks.AbstractTask
-
- org.cyclos.impl.utils.tasks.AbstractPollingTask
-
- org.cyclos.impl.utils.tasks.EntityBatchPollingTask<BasePayment>
-
- org.cyclos.impl.users.AbstractTransactionFeedbackPollingTask
-
- org.cyclos.impl.users.AbstractTransactionFeedbackNotificationPollingTask
-
- org.cyclos.impl.users.TransactionFeedbackReminderPollingTask
-
- All Implemented Interfaces:
Runnable,PollingTask
@Component public class TransactionFeedbackReminderPollingTask extends AbstractTransactionFeedbackNotificationPollingTask
APollingTaskwhich creates notifications to remind users about transaction feedbacks
-
-
Field Summary
-
Fields inherited from class org.cyclos.impl.users.AbstractTransactionFeedbackPollingTask
alreadyNotifiedPath, days, useIgnoreListAndPermission
-
Fields inherited from class org.cyclos.impl.utils.tasks.EntityBatchPollingTask
BATCH_SIZE, entityType
-
Fields inherited from class org.cyclos.impl.utils.tasks.AbstractTask
errorLogService, invokerHandler, loggingHandler
-
Fields inherited from class org.cyclos.impl.AbstractGlobalServerComponent
rawEntityManagerHandler
-
Fields inherited from class org.cyclos.impl.AbstractServerComponent
accountHandler, configurationHandler, dataTranslationHandler, notificationHandler, profileFieldHandler, transactionHandler, translationHandler
-
-
Constructor Summary
Constructors Constructor Description TransactionFeedbackReminderPollingTask()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected voidfinish(BasePayment transaction, Throwable error)Must be implemented in order to mark the given entity as finished.StringgetName()Returns the task nameprotected voidnotifyTransactionProcessed(BasePayment transaction, Date finalDate)-
Methods inherited from class org.cyclos.impl.users.AbstractTransactionFeedbackNotificationPollingTask
process
-
Methods inherited from class org.cyclos.impl.users.AbstractTransactionFeedbackPollingTask
nextIds
-
Methods inherited from class org.cyclos.impl.utils.tasks.EntityBatchPollingTask
doRun, find, generateErrorLog, generateErrorLog, logProcessingErrors, onFinish, resolveNetwork, shouldGenerateErrorLog, shouldGenerateErrorLog, shouldSkipFinish
-
Methods inherited from class org.cyclos.impl.utils.tasks.AbstractPollingTask
dateFromDelay, getFirstExecution, getInitialSleepSeconds, getNextExecution, getSecondsUntilNextDay, getSecondsUntilNextHour, getSleepSeconds, getStorage, initialize, isExclusiveInCluster, run
-
Methods inherited from class org.cyclos.impl.utils.tasks.AbstractTask
getLogConfiguration, logName, logTaskError, logTaskSuccess, toString
-
Methods inherited from class org.cyclos.impl.AbstractGlobalServerComponent
getBaseEntityManagerHandler, getEntityManager
-
Methods inherited from class org.cyclos.impl.AbstractServerComponent
dataTranslationProxy, delete, detach, find, flush, from, getApplicationContext, getFormatter, getFormatter, getFormatter, getLogger, getRemoteAddress, getSessionData, mailContentBuilder, message, message, persist, processBatch, processBatch, refresh, remove, selectFrom, subQuery, update
-
-
-
-
Method Detail
-
getName
public String getName()
Description copied from interface:PollingTaskReturns the task name- Specified by:
getNamein interfacePollingTask- Specified by:
getNamein classAbstractTask
-
finish
protected void finish(BasePayment transaction, Throwable error) throws Throwable
Description copied from class:EntityBatchPollingTaskMust be implemented in order to mark the given entity as finished. Even when {@link #process(IEntity))} fails, this method is invoked. Runs in another transaction, passing the error ifEntityBatchPollingTask.process(IEntity)yielded an error.- Specified by:
finishin classEntityBatchPollingTask<BasePayment>- Throws:
Throwable
-
notifyTransactionProcessed
protected void notifyTransactionProcessed(BasePayment transaction, Date finalDate)
- Specified by:
notifyTransactionProcessedin classAbstractTransactionFeedbackNotificationPollingTask
-
-