className, classpath, classpathAPI, constructor, factoryName, id, jar, properties, provider, type| Constructor and Description |
|---|
SingletonContainerBuilder() |
| Modifier and Type | Method and Description |
|---|---|
Duration |
getAccessTimeout() |
java.util.Properties |
getProperties()
Gets the value of the properties property.
|
SingletonContainerBuilder |
id(java.lang.String id) |
void |
setAccessTimeout(Duration accessTimeout) |
void |
setAccessTimeout(long time,
java.util.concurrent.TimeUnit unit) |
SingletonContainerBuilder |
withAccessTimeout(Duration accessTimeout) |
SingletonContainerBuilder |
withAccessTimeout(long time,
java.util.concurrent.TimeUnit unit) |
equals, getClassName, getClasspath, getClasspathAPI, getConstructor, getFactoryName, getId, getJar, getPropertiesProvider, getProvider, getTemplate, getType, hashCode, setClassName, setClasspath, setClasspathAPI, setConstructor, setFactoryName, setId, setJar, setPropertiesProvider, setProvider, setTemplate, setTypepublic SingletonContainerBuilder id(java.lang.String id)
public SingletonContainerBuilder withAccessTimeout(Duration accessTimeout)
public void setAccessTimeout(Duration accessTimeout)
public Duration getAccessTimeout()
public SingletonContainerBuilder withAccessTimeout(long time, java.util.concurrent.TimeUnit unit)
public void setAccessTimeout(long time,
java.util.concurrent.TimeUnit unit)
public java.util.Properties getProperties()
AbstractServiceset method for the properties property.
For example, to add a new value, do as follows:
getProperties().setProperty(key, value);
getProperties in interface ServicegetProperties in class AbstractService