public class AlwaysRestartStrategy extends java.lang.Object implements RestartStrategy
This RestartStrategy will always return true upon requiresRestart().
In the adapter configuration file this class is aliased as always-restart-strategy which is the preferred alternative to the fully qualified classname when building your configuration.
Constructor and Description |
---|
AlwaysRestartStrategy() |
Modifier and Type | Method and Description |
---|---|
void |
messageProcessed(AdaptrisMessage msg)
Mark the current message as processed.
|
boolean |
requiresRestart()
Whether or not a restart of the underlying service is required.
|
public void messageProcessed(AdaptrisMessage msg)
RestartStrategy
messageProcessed
in interface RestartStrategy
msg
- the message currently being processed.public boolean requiresRestart()
RestartStrategy
requiresRestart
in interface RestartStrategy