Package org.cyclos.impl.users
Class AbstractTransactionFeedbackPollingTask
- 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
-
- All Implemented Interfaces:
Runnable,PollingTask
- Direct Known Subclasses:
AbstractTransactionFeedbackNotificationPollingTask,TransactionFeedbackExpiredPollingTask
public abstract class AbstractTransactionFeedbackPollingTask extends EntityBatchPollingTask<BasePayment>
Base class forPollingTasks which processes transaction feedbacks
-
-
Field Summary
Fields Modifier and Type Field Description protected com.querydsl.core.types.dsl.BooleanPathalreadyNotifiedPathprotected com.querydsl.core.types.dsl.NumberPath<Integer>daysprotected booleanuseIgnoreListAndPermission-
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 AbstractTransactionFeedbackPollingTask(com.querydsl.core.types.dsl.NumberPath<Integer> days, com.querydsl.core.types.dsl.BooleanPath alreadyNotifiedPath, boolean useIgnoreListAndPermission)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected Collection<Long>nextIds()Must be implemented in order to return the ids of the next entities to be processed, without actually processing them.-
Methods inherited from class org.cyclos.impl.utils.tasks.EntityBatchPollingTask
doRun, find, finish, generateErrorLog, generateErrorLog, logProcessingErrors, onFinish, process, 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
-
-
-
-
Field Detail
-
days
protected final com.querydsl.core.types.dsl.NumberPath<Integer> days
-
alreadyNotifiedPath
protected final com.querydsl.core.types.dsl.BooleanPath alreadyNotifiedPath
-
useIgnoreListAndPermission
protected final boolean useIgnoreListAndPermission
-
-
Constructor Detail
-
AbstractTransactionFeedbackPollingTask
public AbstractTransactionFeedbackPollingTask(com.querydsl.core.types.dsl.NumberPath<Integer> days, com.querydsl.core.types.dsl.BooleanPath alreadyNotifiedPath, boolean useIgnoreListAndPermission)
-
-
Method Detail
-
nextIds
protected final Collection<Long> nextIds() throws Throwable
Description copied from class:EntityBatchPollingTaskMust be implemented in order to return the ids of the next entities to be processed, without actually processing them. Returning null or an empty list means there is no more data for now, and will make this task sleep- Specified by:
nextIdsin classEntityBatchPollingTask<BasePayment>- Throws:
Throwable
-
-