@Private public class SchedulerService extends BaseService implements Scheduler
| Modifier and Type | Field | Description |
|---|---|---|
static java.lang.String |
CONF_THREADS |
|
static java.lang.String |
PREFIX |
| Constructor | Description |
|---|---|
SchedulerService() |
| Modifier and Type | Method | Description |
|---|---|---|
void |
destroy() |
Destroy the services.
|
java.lang.Class |
getInterface() |
Returns the interface implemented by this service.
|
java.lang.Class[] |
getServiceDependencies() |
Returns the service dependencies of this service.
|
void |
init() |
Initializes the server.
|
void |
schedule(java.lang.Runnable runnable,
long delay,
long interval,
java.util.concurrent.TimeUnit unit) |
|
void |
schedule(java.util.concurrent.Callable<?> callable,
long delay,
long interval,
java.util.concurrent.TimeUnit unit) |
getPrefix, getPrefixedName, getServer, getServiceConfig, init, postInit, serverStatusChangepublic static final java.lang.String PREFIX
public static final java.lang.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 java.lang.Class[] getServiceDependencies()
BaseServiceThis method returns an empty array (size 0)
getServiceDependencies in interface ServicegetServiceDependencies in class BaseServicepublic java.lang.Class getInterface()
ServiceServer when the Server.get(Class) method is used to
retrieve a service.getInterface in interface Servicepublic void schedule(java.util.concurrent.Callable<?> callable,
long delay,
long interval,
java.util.concurrent.TimeUnit unit)
Copyright © 2008–2025 Apache Software Foundation. All rights reserved.