@ComponentProfile(summary="Runs the configured service/list repeatedly \'WHILE\' the configured condition is met.", tag="service,conditional,loop", since="3.8.4") public class DoWhile extends While
It differs from While
in the same way that a do{ } while(condition);
differs from
while(condition) { }
.
While
In the adapter configuration file this class is aliased as do-while which is the preferred alternative to the fully qualified classname when building your configuration.
log
CONFIRMATION_ID_KEY
Constructor and Description |
---|
DoWhile() |
Modifier and Type | Method and Description |
---|---|
void |
doService(AdaptrisMessage msg)
Apply the service to the message.
|
closeService, continueLooping, getCondition, getMaxLoops, getOnMaxLoops, getThen, initService, onMaxLoops, prepare, setCondition, setMaxLoops, setOnMaxLoops, setThen, start, stop, withCondition, withMaxLoops, withOnMaxLoops, withThen
changeState, close, continueOnFailure, createName, createQualifier, getContinueOnFail, getIsTrackingEndpoint, getLookupName, getUniqueId, init, isBranching, isTrackingEndpoint, requestClose, requestInit, requestStart, requestStop, retrieveComponentState, setContinueOnFail, setIsTrackingEndpoint, setLookupName, setUniqueId
public void doService(AdaptrisMessage msg) throws ServiceException
Service
Apply the service to the message.
doService
in interface Service
doService
in class While
msg
- the AdaptrisMessage
to processServiceException
- wrapping any underlying Exception
s