|
||||||||||
PREV NEXT | FRAMES NO FRAMES |
Packages that use SchedulableQueueElement | |
---|---|
com.emarsys.ecommon.time.schedule | Provides common classes to implement scheduling schemes. |
com.emarsys.ecommon.time.schedule.mock |
Uses of SchedulableQueueElement in com.emarsys.ecommon.time.schedule |
---|
Classes in com.emarsys.ecommon.time.schedule that implement SchedulableQueueElement | |
---|---|
class |
SchedulableQueueElementProxy<T>
A proxy for SchedulableQueueElement s that allows
for some manipulations. |
Fields in com.emarsys.ecommon.time.schedule declared as SchedulableQueueElement | |
---|---|
protected SchedulableQueueElement<T> |
SchedulableQueueElementProxy.schedulable
|
protected SchedulableQueueElement<T> |
ChainElement.schedulable
|
protected SchedulableQueueElement<T> |
QueueSchedulingContextImpl.schedulable
|
Methods in com.emarsys.ecommon.time.schedule that return SchedulableQueueElement | |
---|---|
SchedulableQueueElement<T> |
ChainElement.getSchedulable()
|
Methods in com.emarsys.ecommon.time.schedule with parameters of type SchedulableQueueElement | ||
---|---|---|
java.util.Calendar |
DelayedLinearQueueSchedulingStrategy.calculateNextProcessing(QueueScheduler<T> scheduler,
SchedulableQueueElement<T> schedulable)
If the passed schedulable has been queued (according to getQueueingDate() ) before the
delay threshold (== queueing date + DelayedLinearQueueSchedulingStrategy.delayIntLen ) it will
be constantly rescheduled in DelayedLinearQueueSchedulingStrategy.baseIntLen milliseconds (see
ConstantQueueSchedulingStrategy ).Else if it has been queued after said threshold it will be linearly rescheduled in getScheduledCount()
* DelayedLinearQueueSchedulingStrategy.delayIntLen milliseconds
(see LinearQueueSchedulingStrategy ). |
|
java.util.Calendar |
FixedQueueSchedulingStrategy.calculateNextProcessing(QueueScheduler<T> scheduler,
SchedulableQueueElement<T> schedulable)
If this FixedQueueSchedulingStrategy.scheduleDate is after
(see Calendar.after(Object) ) NOW
(see QueueScheduler.now() then it will be returned,
otherwise NOW +
getMinSchedulingInterval()
will be returned. |
|
java.util.Calendar |
QueueSchedulingStrategyChain.calculateNextProcessing(QueueScheduler<T> scheduler,
SchedulableQueueElement<T> schedulable)
Calculates the next processing date by iterating over the strategy chain QueueSchedulingStrategyChain.elements and for every instance... |
|
java.util.Calendar |
QueueSchedulingStrategy.calculateNextProcessing(QueueScheduler<T> scheduler,
SchedulableQueueElement<T> schedulable)
Performs the concrete scheduling algorithm defined by this QueueSchedulingStrategy on the passed
SchedulableQueueElement . |
|
java.util.Calendar |
LinearQueueSchedulingStrategy.calculateNextProcessing(QueueScheduler<T> scheduler,
SchedulableQueueElement<T> schedulable)
Calculates the next processing date by adding the LinearQueueSchedulingStrategy.intervalMillis multiplied with a scaling factor
(see LinearQueueSchedulingStrategy.calculateScalingFactor(SchedulableQueueElement) )
to the current time. |
|
java.util.Calendar |
ConstantQueueSchedulingStrategy.calculateNextProcessing(QueueScheduler<T> scheduler,
SchedulableQueueElement<T> schedulable)
|
|
protected int |
LinearQueueSchedulingStrategy.calculateScalingFactor(SchedulableQueueElement<T> schedulable)
Calculates the factor the LinearQueueSchedulingStrategy.intervalMillis should be
scalied with linearly as the maximum of 1 and
(
The LinearQueueSchedulingStrategy.delayCount , nomen es omen, thus is used to specify
the number of times the LinearQueueSchedulingStrategy
should do a constant rescheduling just like the
ConstantQueueSchedulingStrategy before proceeding
with the linear scaling. |
|
QueueSchedulingContext<T> |
QueueScheduler.getContext(SchedulableQueueElement<T> schedulable)
Retrieves the QueueSchedulingContext for the
passed SchedulableQueueElement . |
|
static
|
QueueSchedulingStrategyChain.getFactory(SchedulableQueueElement<T> schedulable)
Creates a ChainFactory for the concrete
schedulable instance (which is only used to bind the
type parameter and ensure/enable type safety) passed. |
|
static
|
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
getMaxScheduleDate() and if so
replaces it with said maximum value, but if the max. |
|
static
|
SchedulableQueueElementProxy.getProxy(SchedulableQueueElement<T> schedulable)
Factory method. |
|
QueueSchedulingStrategy<T> |
QueueScheduler.getSchedulingStrategy(SchedulableQueueElement<T> schedulable)
Will create and initialize/configure a new strategy instance if not yet present. |
|
void |
ChainElement.setSchedulable(SchedulableQueueElement<T> schedulable)
|
Constructors in com.emarsys.ecommon.time.schedule with parameters of type SchedulableQueueElement | |
---|---|
ChainFactory(SchedulableQueueElement<T> concreteSchedulable)
Creates a new "empty" ChainFactory instance capable
of creating QueueSchedulingStrategyChain s for the
passed concrete schedulable instance. |
|
QueueSchedulingContextImpl(SchedulableQueueElement<T> schedulable,
QueueScheduler<T> scheduler)
|
|
SchedulableQueueElementProxy(SchedulableQueueElement<T> schedulable)
|
Uses of SchedulableQueueElement in com.emarsys.ecommon.time.schedule.mock |
---|
Classes in com.emarsys.ecommon.time.schedule.mock that implement SchedulableQueueElement | |
---|---|
class |
MockSchedulable
Mock implementation of SchedulableQueueElement for
unit testing purposes. |
Fields in com.emarsys.ecommon.time.schedule.mock with type parameters of type SchedulableQueueElement | |
---|---|
protected java.util.Map<SchedulableQueueElement<T>,QueueSchedulingContext<T>> |
MockQueueScheduler.contexts
|
protected java.util.Map<SchedulableQueueElement<T>,QueueSchedulingStrategy<T>> |
MockQueueScheduler.strategies
|
Methods in com.emarsys.ecommon.time.schedule.mock that return types with arguments of type SchedulableQueueElement | |
---|---|
java.util.Map<SchedulableQueueElement<T>,QueueSchedulingStrategy<T>> |
MockQueueScheduler.getStrategies()
|
Methods in com.emarsys.ecommon.time.schedule.mock with parameters of type SchedulableQueueElement | |
---|---|
java.util.Calendar |
MockSchedulingStrategy.calculateNextProcessing(QueueScheduler<T> scheduler,
SchedulableQueueElement<T> schedulable)
|
QueueSchedulingContext<T> |
MockQueueScheduler.getContext(SchedulableQueueElement<T> schedulable)
|
QueueSchedulingStrategy<T> |
MockQueueScheduler.getSchedulingStrategy(SchedulableQueueElement<T> schedulable)
|
QueueSchedulingStrategy<T> |
MockQueueScheduler.register(SchedulableQueueElement<T> schedulable,
QueueSchedulingStrategy<T> strategy)
|
|
||||||||||
PREV NEXT | FRAMES NO FRAMES |