sedaservicestatistics.java
来自「提供ESB 应用mule源代码 提供ESB 应用mule源代码」· Java 代码 · 共 60 行
JAVA
60 行
/* * $Id: SedaServiceStatistics.java 10529 2008-01-25 05:58:36Z dfeist $ * -------------------------------------------------------------------------------------- * Copyright (c) MuleSource, Inc. All rights reserved. http://www.mulesource.com * * The software in this package is published under the terms of the CPAL v1.0 * license, a copy of which has been included with this distribution in the * LICENSE.txt file. */package org.mule.management.stats;/** * TODO MULE-2233 Pooling functionality has been abstracted out of the SedaService. * This class should be updated accordingly. */public class SedaServiceStatistics extends ServiceStatistics{ private int componentPoolMaxSize = 0; private int componentPoolAbsoluteMaxSize = 0; private int componentPoolSize = 0; public SedaServiceStatistics(String name, int threadPoolSize, int componentPoolsize) { super(name, threadPoolSize); this.componentPoolMaxSize = componentPoolsize; this.componentPoolAbsoluteMaxSize = componentPoolMaxSize; } public synchronized void clear() { componentPoolSize = 0; componentPoolAbsoluteMaxSize = 0; super.clear(); } public int getComponentPoolMaxSize() { return componentPoolMaxSize; } public int getComponentPoolAbsoluteMaxSize() { return componentPoolAbsoluteMaxSize; } public int getComponentPoolSize() { return componentPoolSize; } public synchronized void setComponentPoolSize(int componentPoolSize) { this.componentPoolSize = componentPoolSize; if (componentPoolSize > componentPoolAbsoluteMaxSize) { componentPoolAbsoluteMaxSize = componentPoolSize; } }}
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?