public abstract class ScheduledTask extends TimerTask implements ConfigurationChangedAware, Initializable, UnregisterAware
Modifier and Type | Field and Description |
---|---|
protected AbstractMessageReceiver |
component |
Constructor and Description |
---|
ScheduledTask(Duration delay,
Duration period)
Default constructor allows providing default values
|
Modifier and Type | Method and Description |
---|---|
void |
beanConfigurationChanged(Collection<String> changedFields)
Method called when configuration was applied to bean.
|
void |
beforeUnregister()
Method called before bean unregister.
|
void |
initialize()
Method will be called, when bean will be created, configured and ready to use.
|
cancel, cancel, isCancelled, isScheduled, reset, setScheduledFuture
@Inject(bean="service") protected AbstractMessageReceiver component
public void beanConfigurationChanged(Collection<String> changedFields)
ConfigurationChangedAware
beanConfigurationChanged
in interface ConfigurationChangedAware
changedFields
- collection of field names which were changedpublic void initialize()
Initializable
initialize
in interface Initializable
public void beforeUnregister()
UnregisterAware
beforeUnregister
in interface UnregisterAware
Copyright © 2004–2019 "Tigase, Inc.". All rights reserved.