public abstract class ConditionListImpl extends ConditionImpl
Modifier and Type | Class and Description |
---|---|
protected static interface |
ConditionListImpl.LifecycleOperation |
log
Constructor and Description |
---|
ConditionListImpl() |
Modifier and Type | Method and Description |
---|---|
void |
close()
Closes the component.
|
protected static void |
doLifecycle(java.util.List<Condition> list,
ConditionListImpl.LifecycleOperation p) |
protected static void |
doLifecycleQuietly(java.util.List<Condition> list,
ConditionListImpl.LifecycleOperation p) |
java.util.List<Condition> |
getConditions() |
void |
init()
Initialises the component.
|
void |
setConditions(java.util.List<Condition> conditions) |
void |
start()
Starts the component.
|
void |
stop()
Stop the component
|
<T extends ConditionListImpl> |
withConditions(Condition... conditions) |
public void init() throws CoreException
ComponentLifecycle
Component initialisation includes config verification, creation of connections etc.
CoreException
- wrapping any underlying Exception
spublic void start() throws CoreException
ComponentLifecycle
Once a component is started it should be ready to process messages. In the case of
AdaptrisMessageConsumer
, calling start will begin message delivery.
CoreException
- wrapping any underlying Exception
spublic void stop()
ComponentLifecycle
A stopped component is not expected to be ready to process messages. In the case of
AdaptrisMessageConsumer
, calling stop will pause message delivery. Throwing a
RuntimeException
may cause unintended consequences
public void close()
ComponentLifecycle
A closed component should release any connections it uses, etc. and clean up completely.
Throwing a RuntimeException
may cause unintended consequences
public java.util.List<Condition> getConditions()
public void setConditions(java.util.List<Condition> conditions)
public <T extends ConditionListImpl> T withConditions(Condition... conditions)
protected static void doLifecycle(java.util.List<Condition> list, ConditionListImpl.LifecycleOperation p) throws CoreException
CoreException
protected static void doLifecycleQuietly(java.util.List<Condition> list, ConditionListImpl.LifecycleOperation p)