org.apache.openejb.config.typed
Class JmsConnectionFactoryBuilder

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

public class JmsConnectionFactoryBuilder
extends Resource


Field Summary
 
Fields inherited from class org.apache.openejb.config.sys.Resource
aliases, jndi
 
Fields inherited from class org.apache.openejb.config.sys.AbstractService
className, constructor, factoryName, id, jar, properties, provider, type
 
Constructor Summary
JmsConnectionFactoryBuilder()
           
 
Method Summary
 Duration getConnectionMaxIdleTime()
           
 Duration getConnectionMaxWaitTime()
           
 int getPoolMaxSize()
           
 int getPoolMinSize()
           
 Properties getProperties()
          Gets the value of the properties property.
 String getResourceAdapter()
           
 String getTransactionSupport()
           
 JmsConnectionFactoryBuilder id(String id)
           
 void setConnectionMaxIdleTime(Duration connectionMaxIdleTime)
           
 void setConnectionMaxIdleTime(long time, TimeUnit unit)
           
 void setConnectionMaxWaitTime(Duration connectionMaxWaitTime)
           
 void setConnectionMaxWaitTime(long time, TimeUnit unit)
           
 void setPoolMaxSize(int poolMaxSize)
           
 void setPoolMinSize(int poolMinSize)
           
 void setResourceAdapter(String resourceAdapter)
           
 void setTransactionSupport(String transactionSupport)
           
 JmsConnectionFactoryBuilder withConnectionMaxIdleTime(Duration connectionMaxIdleTime)
           
 JmsConnectionFactoryBuilder withConnectionMaxIdleTime(long time, TimeUnit unit)
           
 JmsConnectionFactoryBuilder withConnectionMaxWaitTime(Duration connectionMaxWaitTime)
           
 JmsConnectionFactoryBuilder withConnectionMaxWaitTime(long time, TimeUnit unit)
           
 JmsConnectionFactoryBuilder withPoolMaxSize(int poolMaxSize)
           
 JmsConnectionFactoryBuilder withPoolMinSize(int poolMinSize)
           
 JmsConnectionFactoryBuilder withResourceAdapter(String resourceAdapter)
           
 JmsConnectionFactoryBuilder withTransactionSupport(String transactionSupport)
           
 
Methods inherited from class org.apache.openejb.config.sys.Resource
equals, getAliases, getJndi, hashCode, setJndi
 
Methods inherited from class org.apache.openejb.config.sys.AbstractService
getClassName, getConstructor, getFactoryName, getId, getJar, getProvider, getType, 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

JmsConnectionFactoryBuilder

public JmsConnectionFactoryBuilder()
Method Detail

id

public JmsConnectionFactoryBuilder id(String id)

withResourceAdapter

public JmsConnectionFactoryBuilder withResourceAdapter(String resourceAdapter)

setResourceAdapter

public void setResourceAdapter(String resourceAdapter)

getResourceAdapter

public String getResourceAdapter()

withTransactionSupport

public JmsConnectionFactoryBuilder withTransactionSupport(String transactionSupport)

setTransactionSupport

public void setTransactionSupport(String transactionSupport)

getTransactionSupport

public String getTransactionSupport()

withPoolMaxSize

public JmsConnectionFactoryBuilder withPoolMaxSize(int poolMaxSize)

setPoolMaxSize

public void setPoolMaxSize(int poolMaxSize)

getPoolMaxSize

public int getPoolMaxSize()

withPoolMinSize

public JmsConnectionFactoryBuilder withPoolMinSize(int poolMinSize)

setPoolMinSize

public void setPoolMinSize(int poolMinSize)

getPoolMinSize

public int getPoolMinSize()

withConnectionMaxWaitTime

public JmsConnectionFactoryBuilder withConnectionMaxWaitTime(Duration connectionMaxWaitTime)

setConnectionMaxWaitTime

public void setConnectionMaxWaitTime(Duration connectionMaxWaitTime)

getConnectionMaxWaitTime

public Duration getConnectionMaxWaitTime()

withConnectionMaxWaitTime

public JmsConnectionFactoryBuilder withConnectionMaxWaitTime(long time,
                                                             TimeUnit unit)

setConnectionMaxWaitTime

public void setConnectionMaxWaitTime(long time,
                                     TimeUnit unit)

withConnectionMaxIdleTime

public JmsConnectionFactoryBuilder withConnectionMaxIdleTime(Duration connectionMaxIdleTime)

setConnectionMaxIdleTime

public void setConnectionMaxIdleTime(Duration connectionMaxIdleTime)

getConnectionMaxIdleTime

public Duration getConnectionMaxIdleTime()

withConnectionMaxIdleTime

public JmsConnectionFactoryBuilder withConnectionMaxIdleTime(long time,
                                                             TimeUnit unit)

setConnectionMaxIdleTime

public void setConnectionMaxIdleTime(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-2013 The Apache Software Foundation. All Rights Reserved.