public class ConnectionDefinitions<T extends ConnectionDefinitions<T>> extends Object
Modifier and Type | Class and Description |
---|---|
static class |
ConnectionDefinitions.ConnectionDefinitionsResources
Child mutators for ConnectionDefinitions
|
static class |
ConnectionDefinitions.FlushStrategy |
Constructor and Description |
---|
ConnectionDefinitions(String key) |
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Adds a property change listener
|
Integer |
allocationRetry()
The allocation retry element indicates the number of times that
allocating a connection should be tried before throwing an exception.
|
T |
allocationRetry(Integer value)
The allocation retry element indicates the number of times that
allocating a connection should be tried before throwing an exception.
|
Long |
allocationRetryWaitMillis()
The allocation retry wait millis element specifies the amount of time, in
milliseconds, to wait between retrying to allocate a connection.
|
T |
allocationRetryWaitMillis(Long value)
The allocation retry wait millis element specifies the amount of time, in
milliseconds, to wait between retrying to allocate a connection.
|
String |
authenticationContext()
The Elytron authentication context which defines the
javax.security.auth.Subject that is used to distinguish connections in
the pool.
|
T |
authenticationContext(String value)
The Elytron authentication context which defines the
javax.security.auth.Subject that is used to distinguish connections in
the pool.
|
String |
authenticationContextAndApplication()
Indicates that either application-supplied parameters, such as from
getConnection(user, pw), or Subject (provided by Elytron after
authenticating using configured authentication-context), are used to
distinguish connections in the pool.
|
T |
authenticationContextAndApplication(String value)
Indicates that either application-supplied parameters, such as from
getConnection(user, pw), or Subject (provided by Elytron after
authenticating using configured authentication-context), are used to
distinguish connections in the pool.
|
Boolean |
backgroundValidation()
An element to specify that connections should be validated on a
background thread versus being validated prior to use.
|
T |
backgroundValidation(Boolean value)
An element to specify that connections should be validated on a
background thread versus being validated prior to use.
|
Long |
backgroundValidationMillis()
The background-validation-millis element specifies the amount of time, in
milliseconds, that background validation will run.
|
T |
backgroundValidationMillis(Long value)
The background-validation-millis element specifies the amount of time, in
milliseconds, that background validation will run.
|
Long |
blockingTimeoutWaitMillis()
The blocking-timeout-millis element specifies the maximum time, in
milliseconds, to block while waiting for a connection before throwing an
exception.
|
T |
blockingTimeoutWaitMillis(Long value)
The blocking-timeout-millis element specifies the maximum time, in
milliseconds, to block while waiting for a connection before throwing an
exception.
|
String |
capacityDecrementerClass()
Class defining the policy for decrementing connections in the pool.
|
T |
capacityDecrementerClass(String value)
Class defining the policy for decrementing connections in the pool.
|
Map |
capacityDecrementerProperties()
Properties to inject in class defining the policy for decrementing
connections in the pool.
|
T |
capacityDecrementerProperties(Map value)
Properties to inject in class defining the policy for decrementing
connections in the pool.
|
T |
capacityDecrementerProperty(String key,
Object value)
Properties to inject in class defining the policy for decrementing
connections in the pool.
|
String |
capacityIncrementerClass()
Class defining the policy for incrementing connections in the pool.
|
T |
capacityIncrementerClass(String value)
Class defining the policy for incrementing connections in the pool.
|
Map |
capacityIncrementerProperties()
Properties to inject in class defining the policy for incrementing
connections in the pool.
|
T |
capacityIncrementerProperties(Map value)
Properties to inject in class defining the policy for incrementing
connections in the pool.
|
T |
capacityIncrementerProperty(String key,
Object value)
Properties to inject in class defining the policy for incrementing
connections in the pool.
|
String |
className()
Specifies the fully qualified class name of a managed connection factory
or admin object.
|
T |
className(String value)
Specifies the fully qualified class name of a managed connection factory
or admin object.
|
T |
configProperties(ConfigProperties value)
Add the ConfigProperties object to the list of subresources
|
T |
configProperties(ConfigPropertiesSupplier supplier)
Install a supplied ConfigProperties object to the list of subresources
|
T |
configProperties(List<ConfigProperties> value)
Add all ConfigProperties objects to this subresource
|
T |
configProperties(String childKey)
Create and configure a ConfigProperties object to the list of
subresources
|
T |
configProperties(String childKey,
ConfigPropertiesConsumer consumer)
Create and configure a ConfigProperties object to the list of
subresources
|
Boolean |
connectable()
Enable the use of CMR.
|
T |
connectable(Boolean value)
Enable the use of CMR.
|
Boolean |
elytronEnabled()
Enables Elytron security for handling authentication of connections.
|
T |
elytronEnabled(Boolean value)
Enables Elytron security for handling authentication of connections.
|
Boolean |
enabled()
Specifies if the resource adapter should be enabled.
|
T |
enabled(Boolean value)
Specifies if the resource adapter should be enabled.
|
Boolean |
enlistment()
Defines if lazy enlistment should be used if supported by the resource
adapter.
|
T |
enlistment(Boolean value)
Defines if lazy enlistment should be used if supported by the resource
adapter.
|
Boolean |
enlistmentTrace()
Defines if WildFly/IronJacamar should record enlistment traces.
|
T |
enlistmentTrace(Boolean value)
Defines if WildFly/IronJacamar should record enlistment traces.
|
ConnectionDefinitions.FlushStrategy |
flushStrategy()
Specifies how the pool should be flushed in case of an error.
|
T |
flushStrategy(ConnectionDefinitions.FlushStrategy value)
Specifies how the pool should be flushed in case of an error.
|
String |
getKey() |
Long |
idleTimeoutMinutes()
Specifies the maximum time, in minutes, a connection may be idle before
being closed.
|
T |
idleTimeoutMinutes(Long value)
Specifies the maximum time, in minutes, a connection may be idle before
being closed.
|
Integer |
initialPoolSize()
Specifies the initial number of connections a pool should hold.
|
T |
initialPoolSize(Integer value)
Specifies the initial number of connections a pool should hold.
|
Boolean |
interleaving()
An element to enable interleaving for XA connections.
|
T |
interleaving(Boolean value)
An element to enable interleaving for XA connections.
|
String |
jndiName()
Specifies the JNDI name for the connection factory.
|
T |
jndiName(String value)
Specifies the JNDI name for the connection factory.
|
Integer |
maxPoolSize()
Specifies the maximum number of connections for a pool.
|
T |
maxPoolSize(Integer value)
Specifies the maximum number of connections for a pool.
|
String |
mcp()
Defines the ManagedConnectionPool implementation.
|
T |
mcp(String value)
Defines the ManagedConnectionPool implementation.
|
Integer |
minPoolSize()
Specifies the minimum number of connections for a pool.
|
T |
minPoolSize(Integer value)
Specifies the minimum number of connections for a pool.
|
Boolean |
noRecovery()
Specifies if the connection pool should be excluded from recovery.
|
T |
noRecovery(Boolean value)
Specifies if the connection pool should be excluded from recovery.
|
Boolean |
noTxSeparatePool()
Oracle does not like XA connections getting used both inside and outside
a JTA transaction.
|
T |
noTxSeparatePool(Boolean value)
Oracle does not like XA connections getting used both inside and outside
a JTA transaction.
|
Boolean |
padXid()
Specifies whether the Xid should be padded.
|
T |
padXid(Boolean value)
Specifies whether the Xid should be padded.
|
Boolean |
poolFair()
Defines if pool use should be fair.
|
T |
poolFair(Boolean value)
Defines if pool use should be fair.
|
Boolean |
poolPrefill()
Specifies if the pool should be prefilled.
|
T |
poolPrefill(Boolean value)
Specifies if the pool should be prefilled.
|
Boolean |
poolUseStrictMin()
Specifies if the min-pool-size should be considered strict.
|
T |
poolUseStrictMin(Boolean value)
Specifies if the min-pool-size should be considered strict.
|
String |
recoveryAuthenticationContext()
The Elytron authentication context used for recovery (current
authentication-context will be used if unspecified).
|
T |
recoveryAuthenticationContext(String value)
The Elytron authentication context used for recovery (current
authentication-context will be used if unspecified).
|
Map |
recoveryCredentialReference()
Credential (from Credential Store) to authenticate on recovery connection
|
T |
recoveryCredentialReference(Map value)
Credential (from Credential Store) to authenticate on recovery connection
|
T |
recoveryCredentialReference(String key,
Object value)
Credential (from Credential Store) to authenticate on recovery connection
|
Boolean |
recoveryElytronEnabled()
Indicates that an Elytron authentication context will be used for
recovery.
|
T |
recoveryElytronEnabled(Boolean value)
Indicates that an Elytron authentication context will be used for
recovery.
|
String |
recoveryPassword()
The password used for recovery.
|
T |
recoveryPassword(String value)
The password used for recovery.
|
String |
recoveryPluginClassName()
The fully qualified class name of the recovery plugin implementation.
|
T |
recoveryPluginClassName(String value)
The fully qualified class name of the recovery plugin implementation.
|
Map |
recoveryPluginProperties()
The properties for the recovery plugin.
|
T |
recoveryPluginProperties(Map value)
The properties for the recovery plugin.
|
T |
recoveryPluginProperty(String key,
Object value)
The properties for the recovery plugin.
|
String |
recoverySecurityDomain()
The PicketBox security domain used for recovery.
|
T |
recoverySecurityDomain(String value)
The PicketBox security domain used for recovery.
|
String |
recoveryUsername()
The user name used for recovery.
|
T |
recoveryUsername(String value)
The user name used for recovery.
|
void |
removePropertyChangeListener(PropertyChangeListener listener)
Removes a property change listener
|
Boolean |
sameRmOverride()
Using this attribute, you can unconditionally set whether
javax.transaction.xa.XAResource.isSameRM(XAResource) returns true or
false.
|
T |
sameRmOverride(Boolean value)
Using this attribute, you can unconditionally set whether
javax.transaction.xa.XAResource.isSameRM(XAResource) returns true or
false.
|
Boolean |
securityApplication()
Indicates that application-supplied parameters, such as from
getConnection(user, pw), are used to distinguish connections in the pool.
|
T |
securityApplication(Boolean value)
Indicates that application-supplied parameters, such as from
getConnection(user, pw), are used to distinguish connections in the pool.
|
String |
securityDomain()
Specifies the PicketBox security domain which defines the
javax.security.auth.Subject that is used to distinguish connections in
the pool.
|
T |
securityDomain(String value)
Specifies the PicketBox security domain which defines the
javax.security.auth.Subject that is used to distinguish connections in
the pool.
|
String |
securityDomainAndApplication()
Indicates that either application-supplied parameters, such as from
getConnection(user, pw), or Subject (from PicketBox security domain), are
used to distinguish connections in the pool.
|
T |
securityDomainAndApplication(String value)
Indicates that either application-supplied parameters, such as from
getConnection(user, pw), or Subject (from PicketBox security domain), are
used to distinguish connections in the pool.
|
Boolean |
sharable()
Enable the use of sharable connections, which allows lazy association to
be enabled if supported.
|
T |
sharable(Boolean value)
Enable the use of sharable connections, which allows lazy association to
be enabled if supported.
|
ConnectionDefinitions.ConnectionDefinitionsResources |
subresources() |
Boolean |
tracking()
Defines if IronJacamar should track connection handles across transaction
boundaries.
|
T |
tracking(Boolean value)
Defines if IronJacamar should track connection handles across transaction
boundaries.
|
Boolean |
useCcm()
Enable the use of a cached connection manager.
|
T |
useCcm(Boolean value)
Enable the use of a cached connection manager.
|
Boolean |
useFastFail()
Whether to fail a connection allocation on the first try if it is invalid
(true) or keep trying until the pool is exhausted of all potential
connections (false).
|
T |
useFastFail(Boolean value)
Whether to fail a connection allocation on the first try if it is invalid
(true) or keep trying until the pool is exhausted of all potential
connections (false).
|
Boolean |
useJavaContext()
Setting this to false will bind the object into global JNDI.
|
T |
useJavaContext(Boolean value)
Setting this to false will bind the object into global JNDI.
|
Boolean |
validateOnMatch()
This specifies if connection validation should be done when a connection
factory attempts to match a managed connection.
|
T |
validateOnMatch(Boolean value)
This specifies if connection validation should be done when a connection
factory attempts to match a managed connection.
|
Boolean |
wrapXaResource()
Specifies whether XAResource instances should be wrapped in an
org.jboss.tm.XAResourceWrapper instance.
|
T |
wrapXaResource(Boolean value)
Specifies whether XAResource instances should be wrapped in an
org.jboss.tm.XAResourceWrapper instance.
|
Integer |
xaResourceTimeout()
The value is passed to XAResource.setTransactionTimeout(), in seconds.
|
T |
xaResourceTimeout(Integer value)
The value is passed to XAResource.setTransactionTimeout(), in seconds.
|
public ConnectionDefinitions(String key)
public String getKey()
public void addPropertyChangeListener(PropertyChangeListener listener)
public void removePropertyChangeListener(PropertyChangeListener listener)
public ConnectionDefinitions.ConnectionDefinitionsResources subresources()
public T configProperties(List<ConfigProperties> value)
value
- List of ConfigProperties objects.public T configProperties(ConfigProperties value)
value
- The ConfigProperties to addpublic T configProperties(String childKey, ConfigPropertiesConsumer consumer)
key
- The key for the ConfigProperties resourceconfig
- The ConfigPropertiesConsumer to usepublic T configProperties(String childKey)
key
- The key for the ConfigProperties resourcepublic T configProperties(ConfigPropertiesSupplier supplier)
public Integer allocationRetry()
public T allocationRetry(Integer value)
public Long allocationRetryWaitMillis()
public T allocationRetryWaitMillis(Long value)
public String authenticationContext()
public T authenticationContext(String value)
public String authenticationContextAndApplication()
public T authenticationContextAndApplication(String value)
public Boolean backgroundValidation()
public T backgroundValidation(Boolean value)
public Long backgroundValidationMillis()
public T backgroundValidationMillis(Long value)
public Long blockingTimeoutWaitMillis()
public T blockingTimeoutWaitMillis(Long value)
public String capacityDecrementerClass()
public T capacityDecrementerClass(String value)
public Map capacityDecrementerProperties()
public T capacityDecrementerProperties(Map value)
public T capacityDecrementerProperty(String key, Object value)
public String capacityIncrementerClass()
public T capacityIncrementerClass(String value)
public Map capacityIncrementerProperties()
public T capacityIncrementerProperties(Map value)
public T capacityIncrementerProperty(String key, Object value)
public String className()
public T className(String value)
public Boolean connectable()
public T connectable(Boolean value)
public Boolean elytronEnabled()
public T elytronEnabled(Boolean value)
public Boolean enabled()
public Boolean enlistment()
public T enlistment(Boolean value)
public Boolean enlistmentTrace()
public T enlistmentTrace(Boolean value)
public ConnectionDefinitions.FlushStrategy flushStrategy()
public T flushStrategy(ConnectionDefinitions.FlushStrategy value)
public Long idleTimeoutMinutes()
public T idleTimeoutMinutes(Long value)
public Integer initialPoolSize()
public T initialPoolSize(Integer value)
public Boolean interleaving()
public T interleaving(Boolean value)
public String jndiName()
public Integer maxPoolSize()
public T maxPoolSize(Integer value)
public String mcp()
public T mcp(String value)
public Integer minPoolSize()
public T minPoolSize(Integer value)
public Boolean noRecovery()
public T noRecovery(Boolean value)
public Boolean noTxSeparatePool()
public T noTxSeparatePool(Boolean value)
public Boolean padXid()
public Boolean poolFair()
public Boolean poolPrefill()
public T poolPrefill(Boolean value)
public Boolean poolUseStrictMin()
public T poolUseStrictMin(Boolean value)
public String recoveryAuthenticationContext()
public T recoveryAuthenticationContext(String value)
public Map recoveryCredentialReference()
public T recoveryCredentialReference(Map value)
public T recoveryCredentialReference(String key, Object value)
public Boolean recoveryElytronEnabled()
public T recoveryElytronEnabled(Boolean value)
public String recoveryPassword()
public String recoveryPluginClassName()
public T recoveryPluginClassName(String value)
public Map recoveryPluginProperties()
public T recoveryPluginProperties(Map value)
public T recoveryPluginProperty(String key, Object value)
public String recoverySecurityDomain()
public T recoverySecurityDomain(String value)
public String recoveryUsername()
public Boolean sameRmOverride()
public T sameRmOverride(Boolean value)
public Boolean securityApplication()
public T securityApplication(Boolean value)
public String securityDomain()
public T securityDomain(String value)
public String securityDomainAndApplication()
public T securityDomainAndApplication(String value)
public Boolean sharable()
public T sharable(Boolean value)
public Boolean tracking()
public T tracking(Boolean value)
public Boolean useCcm()
public Boolean useFastFail()
public T useFastFail(Boolean value)
public Boolean useJavaContext()
public T useJavaContext(Boolean value)
public Boolean validateOnMatch()
public T validateOnMatch(Boolean value)
public Boolean wrapXaResource()
public T wrapXaResource(Boolean value)
public Integer xaResourceTimeout()
Copyright © 2018 JBoss by Red Hat. All rights reserved.