org.apache.openejb.config.typed
Class StatefulContainerBuilder
java.lang.Object
org.apache.openejb.config.sys.AbstractService
org.apache.openejb.config.sys.Container
org.apache.openejb.config.typed.StatefulContainerBuilder
- All Implemented Interfaces:
- Service
public class StatefulContainerBuilder
- extends Container
| Methods inherited from class org.apache.openejb.config.sys.AbstractService |
equals, getClassName, getConstructor, getFactoryName, getId, getJar, getProvider, getType, hashCode, setClassName, setConstructor, setFactoryName, setId, setJar, setProvider, setType |
StatefulContainerBuilder
public StatefulContainerBuilder()
id
public StatefulContainerBuilder id(String id)
withAccessTimeout
public StatefulContainerBuilder withAccessTimeout(Duration accessTimeout)
setAccessTimeout
public void setAccessTimeout(Duration accessTimeout)
getAccessTimeout
public Duration getAccessTimeout()
withAccessTimeout
public StatefulContainerBuilder withAccessTimeout(long time,
TimeUnit unit)
setAccessTimeout
public void setAccessTimeout(long time,
TimeUnit unit)
withCache
public StatefulContainerBuilder withCache(String cache)
setCache
public void setCache(String cache)
getCache
public String getCache()
withPassivator
public StatefulContainerBuilder withPassivator(String passivator)
setPassivator
public void setPassivator(String passivator)
getPassivator
public String getPassivator()
withTimeOut
public StatefulContainerBuilder withTimeOut(Duration timeOut)
setTimeOut
public void setTimeOut(Duration timeOut)
getTimeOut
public Duration getTimeOut()
withTimeOut
public StatefulContainerBuilder withTimeOut(long time,
TimeUnit unit)
setTimeOut
public void setTimeOut(long time,
TimeUnit unit)
withFrequency
public StatefulContainerBuilder withFrequency(int frequency)
setFrequency
public void setFrequency(int frequency)
getFrequency
public int getFrequency()
withCapacity
public StatefulContainerBuilder withCapacity(int capacity)
setCapacity
public void setCapacity(int capacity)
getCapacity
public int getCapacity()
withBulkPassivate
public StatefulContainerBuilder withBulkPassivate(int bulkPassivate)
setBulkPassivate
public void setBulkPassivate(int bulkPassivate)
getBulkPassivate
public int getBulkPassivate()
getProperties
public Properties getProperties()
- Description copied from class:
AbstractService
- Gets the value of the properties property.
This accessor method returns a reference to the live Properties Object,
not a snapshot. Therefore any modification you make to the
returned Properties will be present inside the JAXB object.
This is why there is not a
set method for the properties property.
For example, to add a new value, do as follows:
getProperties().setProperty(key, value);
- Specified by:
getProperties in interface Service- Overrides:
getProperties in class AbstractService
Copyright © 1999-2012 The Apache Software Foundation. All Rights Reserved.