Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.1.3)

Part Number E41849-02

weblogic.management.configuration
Interface MaxThreadsConstraintMBean

All Superinterfaces:
ConfigurationMBean, DeploymentMBean, DescriptorBean, DynamicMBean, MBeanRegistration, NotificationBroadcaster, SettableBean, WebLogicMBean

public interface MaxThreadsConstraintMBean
extends DeploymentMBean

This MBean defines the max number of concurrent threads that can execute requests sharing this max constraint.

MaxThreadsConstraint can be used to tell the server that the requests are constrained by an external resource like a database and allocating more threads that the external resource limit is not going to help since the extra threads are just going to wait.


Field Summary
 
Fields inherited from interface weblogic.management.configuration.DeploymentMBean
DEFAULT_ORDER, MAX_ORDER, MIN_ORDER
 
Fields inherited from interface weblogic.management.configuration.ConfigurationMBean
DEFAULT_EMPTY_BYTE_ARRAY
 
Method Summary
 String getConnectionPoolName()
          Name of the connection pool whose size is taken as the max constraint.
 int getCount()
          Maximum number of concurrent threads that can execute requests sharing this constraint.
 int getQueueSize()
          Desired size of the MaxThreadsConstraint queue for requests pending execution.
 void setConnectionPoolName(String connectionPoolName)
          Name of the connection pool whose size is taken as the max constraint.
 void setCount(int count)
          Max number of concurrent threads that can execute requests sharing this constraint.
 void setQueueSize(int queueSize)
          Desired size of the MaxThreadsConstraint queue for requests pending execution.
 
Methods inherited from interface weblogic.management.configuration.DeploymentMBean
addTarget, getDeploymentOrder, getTargets, removeTarget, setDeploymentOrder, setTargets
 
Methods inherited from interface weblogic.management.configuration.ConfigurationMBean
freezeCurrentValue, getId, getInheritedProperties, getName, getNotes, isDynamicallyCreated, isInherited, isSet, restoreDefaultValue, setComments, setDefaultedMBean, setName, setNotes, setPersistenceEnabled, unSet
 
Methods inherited from interface weblogic.management.WebLogicMBean
getMBeanInfo, getObjectName, getParent, getType, isCachingDisabled, isRegistered, setParent
 
Methods inherited from interface javax.management.DynamicMBean
getAttribute, getAttributes, invoke, setAttribute, setAttributes
 
Methods inherited from interface javax.management.MBeanRegistration
postDeregister, postRegister, preDeregister, preRegister
 
Methods inherited from interface javax.management.NotificationBroadcaster
addNotificationListener, getNotificationInfo, removeNotificationListener
 
Methods inherited from interface weblogic.descriptor.DescriptorBean
addPropertyChangeListener, createChildCopyIncludingObsolete, getParentBean, isEditable, removePropertyChangeListener
 

Method Detail

getCount

int getCount()
Maximum number of concurrent threads that can execute requests sharing this constraint.

A count of 0 or -1 is treated as if the constraint is not present. This means that no constraint is enforced for these two values. A count > 0 can be dynamically changed to 0 to indicate that constraint enforcement is no longer needed.

Default Value:
-1

setCount

void setCount(int count)
Max number of concurrent threads that can execute requests sharing this constraint.

A count of 0 or -1 is treated as if the constraint is not present. This means that no constraint is enforced for these two values. A count > 0 can be dynamically changed to 0 to indicate that constraint enforcement is no longer needed.


getConnectionPoolName

String getConnectionPoolName()
Name of the connection pool whose size is taken as the max constraint.

This can be the name of a JDBC data source. The max capacity of the data source is used as the constraint.


setConnectionPoolName

void setConnectionPoolName(String connectionPoolName)
Name of the connection pool whose size is taken as the max constraint.

This can be the name of a JDBC data source. The max capacity of the data source is used as the constraint.


setQueueSize

void setQueueSize(int queueSize)
Desired size of the MaxThreadsConstraint queue for requests pending execution.

Set the approximate size of the MaxThreadsConstraint requests queue. Requests are added to this queue if they are not yet eligible for execution due the the maximum number of concurrent threads that can execute requests sharing this constraint has been reached. The actual size of the queue created may be different from the value set here. For example, it may be rounded up to the nearest power of 2.

Default Value:
8192
Maximum Value:
65536
Minimum Value:
256

getQueueSize

int getQueueSize()
Desired size of the MaxThreadsConstraint queue for requests pending execution.


Copyright 1996, 2014, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.

Oracle Fusion Middleware
Java API Reference for Oracle WebLogic Server
12c (12.1.3)

Part Number E41849-02