|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.emarsys.ecommon.time.schedule.ChainFactory<T>
T
- public class ChainFactory<T>
A factory for QueueSchedulingStrategyChain
s.
Field Summary | |
---|---|
protected java.util.List<ChainElement<T>> |
chain
|
static org.apache.commons.collections.Predicate |
DEFAULT_FIRE
|
static org.apache.commons.collections.Predicate |
DEFAULT_PROCEED
|
protected org.apache.commons.collections.Predicate |
defaultFire
|
protected org.apache.commons.collections.Predicate |
defaultProceed
|
Constructor Summary | |
---|---|
ChainFactory(java.util.List<ChainElement<T>> elements)
Creates a new ChainFactory instance that is
already initialized with the passed elements. |
|
ChainFactory(QueueSchedulingStrategy<T> strategy)
Creates a new "empty" ChainFactory instance capable
of creating QueueSchedulingStrategyChain s for the
passed concrete strategy instance. |
|
ChainFactory(SchedulableQueueElement<T> concreteSchedulable)
Creates a new "empty" ChainFactory instance capable
of creating QueueSchedulingStrategyChain s for the
passed concrete schedulable instance. |
Method Summary | |
---|---|
ChainFactory<T> |
add(org.apache.commons.collections.Predicate fire,
QueueSchedulingStrategy<T> strategy)
|
ChainFactory<T> |
add(org.apache.commons.collections.Predicate fire,
QueueSchedulingStrategy<T> strategy,
org.apache.commons.collections.Predicate proceed)
|
ChainFactory<T> |
add(QueueSchedulingStrategy<T> strategy)
|
ChainFactory<T> |
add(QueueSchedulingStrategy<T> strategy,
org.apache.commons.collections.Predicate proceed)
|
java.util.List<ChainElement<T>> |
getChain()
|
QueueSchedulingStrategyChain<T> |
getStrategyChainInstance()
|
ChainFactory<T> |
setDefaultFire(org.apache.commons.collections.Predicate defaultFire)
|
ChainFactory<T> |
setDefaultProceed(org.apache.commons.collections.Predicate defaultProceed)
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static org.apache.commons.collections.Predicate DEFAULT_FIRE
public static org.apache.commons.collections.Predicate DEFAULT_PROCEED
protected java.util.List<ChainElement<T>> chain
protected org.apache.commons.collections.Predicate defaultFire
protected org.apache.commons.collections.Predicate defaultProceed
Constructor Detail |
---|
public ChainFactory(QueueSchedulingStrategy<T> strategy)
ChainFactory
instance capable
of creating QueueSchedulingStrategyChain
s for the
passed concrete strategy instance.
strategy
- - a concrete strategy, just to
bind the type parameter and enable type safety.public ChainFactory(SchedulableQueueElement<T> concreteSchedulable)
ChainFactory
instance capable
of creating QueueSchedulingStrategyChain
s for the
passed concrete schedulable instance.
concreteSchedulable
- - the concrete schedulable, see
GenericAdapter.getConcreteInstance()
just to
bind the type parameter and enable type safety.public ChainFactory(java.util.List<ChainElement<T>> elements)
ChainFactory
instance that is
already initialized with the passed elements.
elements
- Method Detail |
---|
public QueueSchedulingStrategyChain<T> getStrategyChainInstance()
public ChainFactory<T> setDefaultFire(org.apache.commons.collections.Predicate defaultFire)
defaultFire
-
public ChainFactory<T> setDefaultProceed(org.apache.commons.collections.Predicate defaultProceed)
defaultProceed
-
public ChainFactory<T> add(QueueSchedulingStrategy<T> strategy)
fire
- strategy
-
public ChainFactory<T> add(org.apache.commons.collections.Predicate fire, QueueSchedulingStrategy<T> strategy)
fire
- strategy
-
public ChainFactory<T> add(QueueSchedulingStrategy<T> strategy, org.apache.commons.collections.Predicate proceed)
fire
- strategy
-
public ChainFactory<T> add(org.apache.commons.collections.Predicate fire, QueueSchedulingStrategy<T> strategy, org.apache.commons.collections.Predicate proceed)
fire
- strategy
-
public java.util.List<ChainElement<T>> getChain()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |