public interface Service
Services singleton.| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
CONF_PREFIX
Prefix for all services configuration properties.
|
static java.lang.String |
DEFAULT_LOCK_TIMEOUT |
static long |
lockTimeout
Lock timeout value if service is only allowed to have one single running instance.
|
| Modifier and Type | Method and Description |
|---|---|
void |
destroy()
Destroy the service.
|
java.lang.Class<? extends Service> |
getInterface()
Return the public interface of the service.
|
void |
init(Services services)
Initialize the service.
|
static final java.lang.String DEFAULT_LOCK_TIMEOUT
static final java.lang.String CONF_PREFIX
static final long lockTimeout
void init(Services services) throws ServiceException
Service singleton at start up time.services - services singleton initializing the service.ServiceException - thrown if the service could not initialize.java.lang.Class<? extends Service> getInterface()
Copyright © 2019 Apache Software Foundation. All Rights Reserved.