Class DoWhile
- java.lang.Object
-
- com.adaptris.core.ServiceImp
-
- com.adaptris.core.services.conditional.While
-
- com.adaptris.core.services.conditional.DoWhile
-
- All Implemented Interfaces:
AdaptrisComponent
,ComponentLifecycle
,ComponentLifecycleExtension
,MessageEventGenerator
,Service
,StateManagedComponent
@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
Simulate a do-while loop.It differs from
While
in the same way that ado{ } while(condition);
differs fromwhile(condition) { }
.- See Also:
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.
-
-
Field Summary
-
Fields inherited from class com.adaptris.core.ServiceImp
log
-
-
Constructor Summary
Constructors Constructor Description DoWhile()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doService(AdaptrisMessage msg)
Apply the service to the message.-
Methods inherited from class com.adaptris.core.services.conditional.While
closeService, continueLooping, getCondition, getMaxLoops, getOnMaxLoops, getThen, initService, onMaxLoops, prepare, setCondition, setMaxLoops, setOnMaxLoops, setThen, start, stop, withCondition, withMaxLoops, withOnMaxLoops, withThen
-
Methods inherited from class com.adaptris.core.ServiceImp
changeState, close, continueOnFailure, createName, createQualifier, getContinueOnFail, getIsTrackingEndpoint, getUniqueId, init, isBranching, isTrackingEndpoint, requestClose, requestInit, requestStart, requestStop, retrieveComponentState, setContinueOnFail, setIsTrackingEndpoint, setUniqueId
-
-
-
-
Method Detail
-
doService
public void doService(AdaptrisMessage msg) throws ServiceException
Description copied from interface:Service
Apply the service to the message.
- Specified by:
doService
in interfaceService
- Overrides:
doService
in classWhile
- Parameters:
msg
- theAdaptrisMessage
to process- Throws:
ServiceException
- wrapping any underlyingException
s
-
-