Package tigase.component
Class ScheduledTask
java.lang.Object
tigase.util.common.TimerTask
tigase.component.ScheduledTask
- All Implemented Interfaces:
Runnable,ConfigurationChangedAware,Initializable,UnregisterAware
- Direct Known Subclasses:
UpdatesChecker
public abstract class ScheduledTask
extends TimerTask
implements ConfigurationChangedAware, Initializable, UnregisterAware
Abstract class extending TimerTask which allows easy configuration and usage of TimerTask as a bean
Created by andrzej on 09.08.2016.
Created by andrzej on 09.08.2016.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionScheduledTask(Duration delay, Duration period) Default constructor allows providing default values -
Method Summary
Modifier and TypeMethodDescriptionvoidbeanConfigurationChanged(Collection<String> changedFields) Method called when configuration was applied to bean.voidMethod called before bean unregister.voidMethod will be called, when bean will be created, configured and ready to use.Methods inherited from class tigase.util.common.TimerTask
cancel, cancel, isCancelled, isScheduled, reset, setScheduledFuture
-
Field Details
-
component
-
-
Constructor Details
-
ScheduledTask
Default constructor allows providing default values- Parameters:
delay- default value of delay Durationperiod- default value of period Duration
-
-
Method Details
-
beanConfigurationChanged
Description copied from interface:ConfigurationChangedAwareMethod called when configuration was applied to bean.- Specified by:
beanConfigurationChangedin interfaceConfigurationChangedAware- Parameters:
changedFields- collection of field names which were changed
-
initialize
public void initialize()Description copied from interface:InitializableMethod will be called, when bean will be created, configured and ready to use.- Specified by:
initializein interfaceInitializable
-
beforeUnregister
public void beforeUnregister()Description copied from interface:UnregisterAwareMethod called before bean unregister.- Specified by:
beforeUnregisterin interfaceUnregisterAware
-