org.apache.openejb.config.typed
Class StatefulContainerBuilder

java.lang.Object
  extended by org.apache.openejb.config.sys.AbstractService
      extended by org.apache.openejb.config.sys.Container
          extended by org.apache.openejb.config.typed.StatefulContainerBuilder
All Implemented Interfaces:
Service

public class StatefulContainerBuilder
extends Container


Field Summary
 
Fields inherited from class org.apache.openejb.config.sys.AbstractService
className, classpath, constructor, factoryName, id, jar, properties, provider, type
 
Constructor Summary
StatefulContainerBuilder()
           
 
Method Summary
 Duration getAccessTimeout()
           
 int getBulkPassivate()
           
 String getCache()
           
 int getCapacity()
           
 int getFrequency()
           
 String getPassivator()
           
 Properties getProperties()
          Gets the value of the properties property.
 Duration getTimeOut()
           
 StatefulContainerBuilder id(String id)
           
 void setAccessTimeout(Duration accessTimeout)
           
 void setAccessTimeout(long time, TimeUnit unit)
           
 void setBulkPassivate(int bulkPassivate)
           
 void setCache(String cache)
           
 void setCapacity(int capacity)
           
 void setFrequency(int frequency)
           
 void setPassivator(String passivator)
           
 void setTimeOut(Duration timeOut)
           
 void setTimeOut(long time, TimeUnit unit)
           
 StatefulContainerBuilder withAccessTimeout(Duration accessTimeout)
           
 StatefulContainerBuilder withAccessTimeout(long time, TimeUnit unit)
           
 StatefulContainerBuilder withBulkPassivate(int bulkPassivate)
           
 StatefulContainerBuilder withCache(String cache)
           
 StatefulContainerBuilder withCapacity(int capacity)
           
 StatefulContainerBuilder withFrequency(int frequency)
           
 StatefulContainerBuilder withPassivator(String passivator)
           
 StatefulContainerBuilder withTimeOut(Duration timeOut)
           
 StatefulContainerBuilder withTimeOut(long time, TimeUnit unit)
           
 
Methods inherited from class org.apache.openejb.config.sys.Container
getCtype, setCtype
 
Methods inherited from class org.apache.openejb.config.sys.AbstractService
equals, getClassName, getClasspath, getConstructor, getFactoryName, getId, getJar, getPropertiesProvider, getProvider, getType, hashCode, setClassName, setClasspath, setConstructor, setFactoryName, setId, setJar, setPropertiesProvider, setProvider, setType
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatefulContainerBuilder

public StatefulContainerBuilder()
Method Detail

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–2015 The Apache Software Foundation. All rights reserved.