| java.lang.Object example.PeriodicTaskFilter
PeriodicTaskFilter | public class PeriodicTaskFilter implements Filter(Code) | | Filter to show a maintenance page if the MaintenanceRunner is active.
init parameters
- url
- The url to forward to when active, if not set then a 503
(SERVICE_UNAVAILABLE) error code is returned.
- min-estimated-time
- The minimum amount of time in seconds for an estimate of when the task
will complete, default is 5 seconds.
|
Field Summary | |
final protected static Logger | log |
PeriodicTaskFilter | public PeriodicTaskFilter()(Code) | | |
destroy | public void destroy()(Code) | | |
setMinEstimatedTime | public void setMinEstimatedTime(int seconds)(Code) | | The minimum amount of time in seconds for an estimate of when the task
will complete, default is 5 seconds.
|
setUrl | public void setUrl(String url)(Code) | | The url to forward to when active, if not set then a 503
(SERVICE_UNAVAILABLE) error code is returned.
|
|
|