Package org.cyclos.impl.users
Class AbstractTransactionFeedbackNotificationPollingTask
- 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
-
- All Implemented Interfaces:
Runnable,PollingTask
- Direct Known Subclasses:
TransactionFeedbackExpirationReminderPollingTask,TransactionFeedbackReminderPollingTask
public abstract class AbstractTransactionFeedbackNotificationPollingTask extends AbstractTransactionFeedbackPollingTask
Base class forPollingTasks which processes 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 AbstractTransactionFeedbackNotificationPollingTask(com.querydsl.core.types.dsl.NumberPath<Integer> days, com.querydsl.core.types.dsl.BooleanPath alreadyNotifiedControl)
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract voidnotifyTransactionProcessed(BasePayment transaction, Date date)protected voidprocess(BasePayment transaction)Must be implemented in order to actually process the given entity, without change it's state to already processed-
Methods inherited from class org.cyclos.impl.users.AbstractTransactionFeedbackPollingTask
nextIds
-
Methods inherited from class org.cyclos.impl.utils.tasks.EntityBatchPollingTask
doRun, find, finish, 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, getName, 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
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.cyclos.impl.utils.tasks.PollingTask
getName
-
-
-
-
Constructor Detail
-
AbstractTransactionFeedbackNotificationPollingTask
public AbstractTransactionFeedbackNotificationPollingTask(com.querydsl.core.types.dsl.NumberPath<Integer> days, com.querydsl.core.types.dsl.BooleanPath alreadyNotifiedControl)
-
-
Method Detail
-
notifyTransactionProcessed
protected abstract void notifyTransactionProcessed(BasePayment transaction, Date date)
-
process
protected final void process(BasePayment transaction) throws Throwable
Description copied from class:EntityBatchPollingTaskMust be implemented in order to actually process the given entity, without change it's state to already processed- Specified by:
processin classEntityBatchPollingTask<BasePayment>- Throws:
Throwable
-
-