Uses of Interface
com.emarsys.ecommon.time.schedule.QueueSchedulingStrategy

Packages that use QueueSchedulingStrategy
com.emarsys.ecommon.time.schedule Provides common classes to implement scheduling schemes. 
com.emarsys.ecommon.time.schedule.mock   
 

Uses of QueueSchedulingStrategy in com.emarsys.ecommon.time.schedule
 

Classes in com.emarsys.ecommon.time.schedule that implement QueueSchedulingStrategy
 class ConstantQueueSchedulingStrategy<T>
          ConstantQueueSchedulingStrategy will compute the next schedule date by adding its intervalMillis to the current time which will be retrieved by QueueScheduler.now().
 class DelayedLinearQueueSchedulingStrategy<T>
           The DelayedLinearQueueSchedulingStrategy represents a two phase scheduling algorithm that reschedules queue elements in their first phase in constant intervals and scales them linearly with number of processings in their second.
 class FixedQueueSchedulingStrategy<T>
           The FixedQueueSchedulingStrategy will "calculate" the next processing date by just setting its fixed FixedQueueSchedulingStrategy.scheduleDate.
 class LinearQueueSchedulingStrategy<T>
           LinearQueueSchedulingStrategy will compute the next processing date by linearly scaling its LinearQueueSchedulingStrategy.intervalMillis with the number of already happend reschedulings thus resulting in a linear increase of the intervals.
 class QueueSchedulingStrategyChain<T>
           A QueueSchedulingStrategyChain implements a chain of responsibility for queue scheduling strategies whilest being a composited strategy itself and can be used to create arbitrary, dynamic combinations of existing scheduling algorithms.
 

Fields in com.emarsys.ecommon.time.schedule declared as QueueSchedulingStrategy
protected  QueueSchedulingStrategy<T> ChainElement.strategy
           
 

Methods in com.emarsys.ecommon.time.schedule that return QueueSchedulingStrategy
protected  QueueSchedulingStrategy<T> DelayedLinearQueueSchedulingStrategy.getConstStrategy()
          Creates a new wrapped ConstantQueueSchedulingStrategy instance that will increment the number of the context param DelayedLinearQueueSchedulingStrategy.CONST_PHASE_ITERATIONS_KEY on every call of DelayedLinearQueueSchedulingStrategy.calculateNextProcessing(QueueScheduler, SchedulableQueueElement).
protected  QueueSchedulingStrategy<T> DelayedLinearQueueSchedulingStrategy.getLinearStrategy()
           Creates a LinearQueueSchedulingStrategy that will start to scale the scheduling interval after the constant scheduling phase.
 QueueSchedulingStrategy<T> QueueScheduler.getSchedulingStrategy(SchedulableQueueElement<T> schedulable)
          Will create and initialize/configure a new strategy instance if not yet present.
 QueueSchedulingStrategy<T> ChainElement.getStrategy()
           
 

Methods in com.emarsys.ecommon.time.schedule with parameters of type QueueSchedulingStrategy
 ChainFactory<T> ChainFactory.add(org.apache.commons.collections.Predicate fire, QueueSchedulingStrategy<T> strategy)
           
 ChainFactory<T> ChainFactory.add(org.apache.commons.collections.Predicate fire, QueueSchedulingStrategy<T> strategy, org.apache.commons.collections.Predicate proceed)
           
 ChainFactory<T> ChainFactory.add(QueueSchedulingStrategy<T> strategy)
           
 ChainFactory<T> ChainFactory.add(QueueSchedulingStrategy<T> strategy, org.apache.commons.collections.Predicate proceed)
           
static
<T> ChainFactory<T>
QueueSchedulingStrategyChain.getFactory(QueueSchedulingStrategy<T> strategy)
          Creates a ChainFactory for the concrete strategy instance (which is only used to bind the type parameter and ensure/enable type safety) passed.
static
<T> QueueSchedulingStrategyChain<T>
QueueSchedulings.getMaxScheduleDateTresholdDecorator(QueueSchedulingStrategy<T> strategy, java.util.Calendar maxDate)
          Creates a new QueueSchedulingStrategyChain out of the passed strategy instance that appends another ChainElement which checks if the passed strategy calculated a next processing date that exceeds the passed maxDate and if so replaces it with said maximum value, but if the max.
static
<T> QueueSchedulingStrategyChain<T>
QueueSchedulings.getMaxScheduleDateTresholdDecorator(QueueSchedulingStrategy<T> strategy, SchedulableQueueElement<T> schedulable)
          Creates a new QueueSchedulingStrategyChain out of the passed strategy instance that appends another ChainElement which checks if the passed strategy calculated a next processing date that exceeds the SchedulableQueueElement.getMaxScheduleDate() and if so replaces it with said maximum value, but if the max.
 

Constructors in com.emarsys.ecommon.time.schedule with parameters of type QueueSchedulingStrategy
ChainElement(QueueSchedulingStrategy<T> strategy)
          Creates a new ChainElement instance.
ChainFactory(QueueSchedulingStrategy<T> strategy)
          Creates a new "empty" ChainFactory instance capable of creating QueueSchedulingStrategyChains for the passed concrete strategy instance.
 

Uses of QueueSchedulingStrategy in com.emarsys.ecommon.time.schedule.mock
 

Classes in com.emarsys.ecommon.time.schedule.mock that implement QueueSchedulingStrategy
 class MockSchedulingStrategy<T>
          A mock implementation of a QueueSchedulingStrategy for Ts.
 

Fields in com.emarsys.ecommon.time.schedule.mock with type parameters of type QueueSchedulingStrategy
protected  java.util.Map<SchedulableQueueElement<T>,QueueSchedulingStrategy<T>> MockQueueScheduler.strategies
           
 

Methods in com.emarsys.ecommon.time.schedule.mock that return QueueSchedulingStrategy
 QueueSchedulingStrategy<T> MockQueueScheduler.getSchedulingStrategy(SchedulableQueueElement<T> schedulable)
           
 QueueSchedulingStrategy<T> MockQueueScheduler.register(SchedulableQueueElement<T> schedulable, QueueSchedulingStrategy<T> strategy)
           
 

Methods in com.emarsys.ecommon.time.schedule.mock that return types with arguments of type QueueSchedulingStrategy
 java.util.Map<SchedulableQueueElement<T>,QueueSchedulingStrategy<T>> MockQueueScheduler.getStrategies()
           
 

Methods in com.emarsys.ecommon.time.schedule.mock with parameters of type QueueSchedulingStrategy
 QueueSchedulingStrategy<T> MockQueueScheduler.register(SchedulableQueueElement<T> schedulable, QueueSchedulingStrategy<T> strategy)
           
 



Copyright © 2010 emarsys AG. All Rights Reserved.