public final class DefaultConfigurationExpirationMonitor extends Object implements ConfigurationExpirationMonitor
ConfigurationExpirationMonitor which schedules tasks that run on a given frequency
to check for dynamic configuration instances which should be expired. The selected instances are expired by being unregistered
and having the shutdown lifecycle applied to them.
Instances of this class are immutable and should be built through a DefaultConfigurationExpirationMonitor.Builder which can be obtained through the
DefaultConfigurationExpirationMonitor.Builder.newBuilder(ExtensionRegistry, MuleContext) method| Modifier and Type | Class and Description |
|---|---|
static class |
DefaultConfigurationExpirationMonitor.Builder
A builder object for instances of
DefaultConfigurationExpirationMonitor |
| Modifier and Type | Method and Description |
|---|---|
void |
beginMonitoring()
Starts a scheduler which fires expiration tasks on the given
frequency and executes the expirationHandler
on each matching configuration instance |
void |
stopMonitoring()
Shutdowns the scheduler that executes the expiration tasks.
|
public void beginMonitoring()
frequency and executes the expirationHandler
on each matching configuration instancebeginMonitoring in interface ConfigurationExpirationMonitorpublic void stopMonitoring()
MuleException if it could not be stoppedstopMonitoring in interface ConfigurationExpirationMonitorCopyright © 2003–2019 MuleSoft, Inc.. All rights reserved.