@InterfaceAudience.Private public class SchedulerService extends BaseService implements Scheduler
| Modifier and Type | Field and Description | 
|---|---|
| static String | CONF_THREADS | 
| static String | PREFIX | 
| Constructor and Description | 
|---|
| SchedulerService() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | destroy()Destroy the services. | 
| Class | getInterface()Returns the interface implemented by this service. | 
| Class[] | getServiceDependencies()Returns the service dependencies of this service. | 
| void | init()Initializes the server. | 
| void | schedule(Callable<?> callable,
        long delay,
        long interval,
        TimeUnit unit) | 
| void | schedule(Runnable runnable,
        long delay,
        long interval,
        TimeUnit unit) | 
getPrefix, getPrefixedName, getServer, getServiceConfig, init, postInit, serverStatusChangepublic static final String PREFIX
public static final String CONF_THREADS
public void init()
          throws ServiceException
BaseService
 This method is called by BaseService.init(Server) after all service properties
 (properties prefixed with
init in class BaseServiceServiceException - thrown if the service could not be initialized.public void destroy()
BaseServiceServer owning the service is being destroyed.
 This method does a NOP.
destroy in interface Servicedestroy in class BaseServicepublic Class[] getServiceDependencies()
BaseServiceThis method returns an empty array (size 0)
getServiceDependencies in interface ServicegetServiceDependencies in class BaseServicepublic Class getInterface()
ServiceServer when the Server.get(Class) method is used to
 retrieve a service.getInterface in interface ServiceCopyright © 2008–2023 Apache Software Foundation. All rights reserved.