Skip navigation links

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

Part Number E55141-01
P4 Change 1723563 on 2015/10/09


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.

Since:
9.0.0.0

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
abstract  String getConnectionPoolName()
          Name of the connection pool whose size is taken as the max constraint.
abstract  int getCount()
          Maximum number of concurrent threads that can execute requests sharing this constraint.
abstract  int getQueueSize()
          Desired size of the MaxThreadsConstraint queue for requests pending execution.
abstract  void setConnectionPoolName(String connectionPoolName)
          Name of the connection pool whose size is taken as the max constraint.
abstract  void setCount(int count)
          Max number of concurrent threads that can execute requests sharing this constraint.
abstract  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.

Since:
9.0.0.0

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. Setting a large queue size would increase memory consumption. It is best to not set the queue size to be larger than necessary.

Since:
12.1.2.0

getQueueSize

int getQueueSize()

Desired size of the MaxThreadsConstraint queue for requests pending execution.

Since:
12.1.2.0

Skip navigation links

Copyright 1996, 2015, 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.2.1)

Part Number E55141-01
P4 Change 1723563 on 2015/10/09