org.apache.openejb.config.typed
Class StatelessContainerBuilder

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.StatelessContainerBuilder
All Implemented Interfaces:
Service

public class StatelessContainerBuilder
extends Container


Field Summary
 
Fields inherited from class org.apache.openejb.config.sys.AbstractService
className, constructor, factoryName, id, jar, properties, provider, type
 
Constructor Summary
StatelessContainerBuilder()
           
 
Method Summary
 Duration getAccessTimeout()
           
 int getCallbackThreads()
           
 Duration getCloseTimeout()
           
 boolean getGarbageCollection()
           
 Duration getIdleTimeout()
           
 Duration getMaxAge()
           
 int getMaxAgeOffset()
           
 int getMaxSize()
           
 int getMinSize()
           
 Properties getProperties()
          Gets the value of the properties property.
 boolean getReplaceAged()
           
 boolean getReplaceFlushed()
           
 boolean getStrictPooling()
           
 Duration getSweepInterval()
           
 StatelessContainerBuilder id(String id)
           
 void setAccessTimeout(Duration accessTimeout)
           
 void setAccessTimeout(long time, TimeUnit unit)
           
 void setCallbackThreads(int callbackThreads)
           
 void setCloseTimeout(Duration closeTimeout)
           
 void setCloseTimeout(long time, TimeUnit unit)
           
 void setGarbageCollection(boolean garbageCollection)
           
 void setIdleTimeout(Duration idleTimeout)
           
 void setIdleTimeout(long time, TimeUnit unit)
           
 void setMaxAge(Duration maxAge)
           
 void setMaxAge(long time, TimeUnit unit)
           
 void setMaxAgeOffset(int maxAgeOffset)
           
 void setMaxSize(int maxSize)
           
 void setMinSize(int minSize)
           
 void setReplaceAged(boolean replaceAged)
           
 void setReplaceFlushed(boolean replaceFlushed)
           
 void setStrictPooling(boolean strictPooling)
           
 void setSweepInterval(Duration sweepInterval)
           
 void setSweepInterval(long time, TimeUnit unit)
           
 StatelessContainerBuilder withAccessTimeout(Duration accessTimeout)
           
 StatelessContainerBuilder withAccessTimeout(long time, TimeUnit unit)
           
 StatelessContainerBuilder withCallbackThreads(int callbackThreads)
           
 StatelessContainerBuilder withCloseTimeout(Duration closeTimeout)
           
 StatelessContainerBuilder withCloseTimeout(long time, TimeUnit unit)
           
 StatelessContainerBuilder withGarbageCollection(boolean garbageCollection)
           
 StatelessContainerBuilder withIdleTimeout(Duration idleTimeout)
           
 StatelessContainerBuilder withIdleTimeout(long time, TimeUnit unit)
           
 StatelessContainerBuilder withMaxAge(Duration maxAge)
           
 StatelessContainerBuilder withMaxAge(long time, TimeUnit unit)
           
 StatelessContainerBuilder withMaxAgeOffset(int maxAgeOffset)
           
 StatelessContainerBuilder withMaxSize(int maxSize)
           
 StatelessContainerBuilder withMinSize(int minSize)
           
 StatelessContainerBuilder withReplaceAged(boolean replaceAged)
           
 StatelessContainerBuilder withReplaceFlushed(boolean replaceFlushed)
           
 StatelessContainerBuilder withStrictPooling(boolean strictPooling)
           
 StatelessContainerBuilder withSweepInterval(Duration sweepInterval)
           
 StatelessContainerBuilder withSweepInterval(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, getConstructor, getFactoryName, getId, getJar, getProvider, getType, hashCode, setClassName, setConstructor, setFactoryName, setId, setJar, setProvider, setType
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatelessContainerBuilder

public StatelessContainerBuilder()
Method Detail

id

public StatelessContainerBuilder id(String id)

withAccessTimeout

public StatelessContainerBuilder withAccessTimeout(Duration accessTimeout)

setAccessTimeout

public void setAccessTimeout(Duration accessTimeout)

getAccessTimeout

public Duration getAccessTimeout()

withAccessTimeout

public StatelessContainerBuilder withAccessTimeout(long time,
                                                   TimeUnit unit)

setAccessTimeout

public void setAccessTimeout(long time,
                             TimeUnit unit)

withMaxSize

public StatelessContainerBuilder withMaxSize(int maxSize)

setMaxSize

public void setMaxSize(int maxSize)

getMaxSize

public int getMaxSize()

withMinSize

public StatelessContainerBuilder withMinSize(int minSize)

setMinSize

public void setMinSize(int minSize)

getMinSize

public int getMinSize()

withStrictPooling

public StatelessContainerBuilder withStrictPooling(boolean strictPooling)

setStrictPooling

public void setStrictPooling(boolean strictPooling)

getStrictPooling

public boolean getStrictPooling()

withMaxAge

public StatelessContainerBuilder withMaxAge(Duration maxAge)

setMaxAge

public void setMaxAge(Duration maxAge)

getMaxAge

public Duration getMaxAge()

withMaxAge

public StatelessContainerBuilder withMaxAge(long time,
                                            TimeUnit unit)

setMaxAge

public void setMaxAge(long time,
                      TimeUnit unit)

withReplaceAged

public StatelessContainerBuilder withReplaceAged(boolean replaceAged)

setReplaceAged

public void setReplaceAged(boolean replaceAged)

getReplaceAged

public boolean getReplaceAged()

withReplaceFlushed

public StatelessContainerBuilder withReplaceFlushed(boolean replaceFlushed)

setReplaceFlushed

public void setReplaceFlushed(boolean replaceFlushed)

getReplaceFlushed

public boolean getReplaceFlushed()

withMaxAgeOffset

public StatelessContainerBuilder withMaxAgeOffset(int maxAgeOffset)

setMaxAgeOffset

public void setMaxAgeOffset(int maxAgeOffset)

getMaxAgeOffset

public int getMaxAgeOffset()

withIdleTimeout

public StatelessContainerBuilder withIdleTimeout(Duration idleTimeout)

setIdleTimeout

public void setIdleTimeout(Duration idleTimeout)

getIdleTimeout

public Duration getIdleTimeout()

withIdleTimeout

public StatelessContainerBuilder withIdleTimeout(long time,
                                                 TimeUnit unit)

setIdleTimeout

public void setIdleTimeout(long time,
                           TimeUnit unit)

withGarbageCollection

public StatelessContainerBuilder withGarbageCollection(boolean garbageCollection)

setGarbageCollection

public void setGarbageCollection(boolean garbageCollection)

getGarbageCollection

public boolean getGarbageCollection()

withSweepInterval

public StatelessContainerBuilder withSweepInterval(Duration sweepInterval)

setSweepInterval

public void setSweepInterval(Duration sweepInterval)

getSweepInterval

public Duration getSweepInterval()

withSweepInterval

public StatelessContainerBuilder withSweepInterval(long time,
                                                   TimeUnit unit)

setSweepInterval

public void setSweepInterval(long time,
                             TimeUnit unit)

withCallbackThreads

public StatelessContainerBuilder withCallbackThreads(int callbackThreads)

setCallbackThreads

public void setCallbackThreads(int callbackThreads)

getCallbackThreads

public int getCallbackThreads()

withCloseTimeout

public StatelessContainerBuilder withCloseTimeout(Duration closeTimeout)

setCloseTimeout

public void setCloseTimeout(Duration closeTimeout)

getCloseTimeout

public Duration getCloseTimeout()

withCloseTimeout

public StatelessContainerBuilder withCloseTimeout(long time,
                                                  TimeUnit unit)

setCloseTimeout

public void setCloseTimeout(long time,
                            TimeUnit unit)

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.